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

re-fixed type registration bug properly

This commit is contained in:
Henning Koehler
2017-09-11 01:12:43 +12:00
parent 9a335cdb59
commit f8a8f6ac72

View File

@@ -135,6 +135,10 @@ void registerTypesMapObjectTypes(Serializer &s)
REGISTER_GENERIC_HANDLER(CGWitchHut);
#undef REGISTER_GENERIC_HANDLER
s.template registerType<IUpdater, ScalingUpdater>();
//new types (other than netpacks) must register here
//order of type registration is critical for loading old savegames
}
template<typename Serializer>
@@ -201,9 +205,6 @@ void registerTypesMapObjects2(Serializer &s)
//s.template registerType<CObstacleInstance>();
s.template registerType<CObstacleInstance, MoatObstacle>();
s.template registerType<CObstacleInstance, SpellCreatedObstacle>();
// Updaters
s.template registerType<IUpdater, ScalingUpdater>();
}
template<typename Serializer>
void registerTypesClientPacks1(Serializer &s)