1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Remove pointers to hero instances from HeroPool class

This commit is contained in:
Ivan Savenko
2025-03-18 10:58:55 +00:00
parent 71bc1054d0
commit d9aabb47e6
6 changed files with 42 additions and 36 deletions

View File

@ -1223,7 +1223,7 @@ void RemoveObject::applyGs(CGameState *gs)
}
//return hero to the pool, so he may reappear in tavern
gs->heroesPool->addHeroToPool(beatenHero);
gs->heroesPool->addHeroToPool(beatenHero->getHeroTypeID());
//If hero on Boat is removed, the Boat disappears
if(beatenHero->boat)