mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Fixed weird bug in serializer which caused corrupted data in Json map (missing guards entry in banks)
This commit is contained in:
@@ -1442,11 +1442,12 @@ public:
|
||||
{
|
||||
READ_CHECK_U32(length);
|
||||
data.clear();
|
||||
T1 t;
|
||||
T1 key;
|
||||
T2 value;
|
||||
for(ui32 i=0;i<length;i++)
|
||||
{
|
||||
*this >> t;
|
||||
*this >> data[t];
|
||||
*this >> key >> value;
|
||||
data.insert(std::pair<T1, T2>(std::move(key), std::move(value)));
|
||||
}
|
||||
}
|
||||
template <typename T1, typename T2>
|
||||
|
||||
Reference in New Issue
Block a user