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

CGPandoraBox: don't use giveCreatures object removal feature

For pandora box there's own removal function and for CGEvent based on it we sometimes don't want to remove object at all.
This commit is contained in:
Arseniy Shestakov
2016-02-17 11:28:54 +03:00
parent 4d9058e412
commit 07961766ca

View File

@@ -254,7 +254,7 @@ void CGPandoraBox::giveContentsAfterExp(const CGHeroInstance *h) const
iw.text.addReplacement(h->name); iw.text.addReplacement(h->name);
cb->showInfoDialog(&iw); cb->showInfoDialog(&iw);
cb->giveCreatures(this, h, creatures, true); cb->giveCreatures(this, h, creatures, false);
} }
if(!hasGuardians && msg.size()) if(!hasGuardians && msg.size())
{ {