mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Remove ConstTransitivePtr from hero and town instances
This commit is contained in:
@@ -70,8 +70,8 @@ class BinaryDeserializer : public CLoaderBase
|
||||
{
|
||||
auto * hero = dynamic_cast<CGHeroInstance *>(armyPtr);
|
||||
assert(hero);
|
||||
assert(hero->commander);
|
||||
data = hero->commander;
|
||||
assert(hero->getCommander());
|
||||
data = hero->getCommander();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user