mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Check battleInt->curInt instead of battleInt
This commit is contained in:
parent
619b35ab33
commit
2a6525c5ef
@ -1010,7 +1010,7 @@ void CPlayerInterface::showInfoDialog(const std::string &text, const std::vector
|
||||
}
|
||||
std::shared_ptr<CInfoWindow> temp = CInfoWindow::create(text, playerID, components);
|
||||
|
||||
if ((makingTurn || battleInt) && GH.windows().count() > 0 && LOCPLINT == this)
|
||||
if ((makingTurn || (battleInt && battleInt->curInt && battleInt->curInt.get() == this)) && GH.windows().count() > 0 && LOCPLINT == this)
|
||||
{
|
||||
CCS->soundh->playSound(static_cast<soundBase::soundID>(soundID));
|
||||
showingDialog->setBusy();
|
||||
|
Loading…
x
Reference in New Issue
Block a user