mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
blockingDialog functions: the answer
parameter can be negative
This commit is contained in:
@ -516,7 +516,7 @@ void CGDwelling::battleFinished(const CGHeroInstance *hero, const BattleResult &
|
||||
}
|
||||
}
|
||||
|
||||
void CGDwelling::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answer) const
|
||||
void CGDwelling::blockingDialogAnswered(const CGHeroInstance *hero, int32_t answer) const
|
||||
{
|
||||
auto relations = cb->getPlayerRelations(getOwner(), hero->getOwner());
|
||||
if(stacksCount() > 0 && relations == PlayerRelations::ENEMIES) //guards present
|
||||
|
Reference in New Issue
Block a user