1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-05 13:04:54 +02:00

Fix serializer backward compatibility in CPointerLoader

This commit is contained in:
AlexVinS 2016-02-18 18:08:05 +03:00 committed by Arseniy Shestakov
parent 07961766ca
commit 7eb8dbe0e9

View File

@ -1100,7 +1100,7 @@ public:
ptr = ClassObjectCreator<npT>::invoke(); //does new npT or throws for abstract classes
s.ptrAllocated(ptr, pid);
//T is most derived known type, it's time to call actual serialize
ptr->serialize(s,version);
ptr->serialize(s,s.fileVersion);
return &typeid(T);
}
};