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:
@ -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)
|
||||
|
Reference in New Issue
Block a user