Selaa lähdekoodia

Fixed weird bug in serializer which caused corrupted data in Json map (missing guards entry in banks)

Ivan Savenko 10 vuotta sitten
vanhempi
sitoutus
376b2436f8
1 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 4 3
      lib/Connection.h

+ 4 - 3
lib/Connection.h

@@ -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>