diff options
-rw-r--r-- | engines/kyra/gui/gui_eob.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/kyra/gui/gui_eob.cpp b/engines/kyra/gui/gui_eob.cpp index 1babce7267..b89f308c01 100644 --- a/engines/kyra/gui/gui_eob.cpp +++ b/engines/kyra/gui/gui_eob.cpp @@ -3506,14 +3506,15 @@ bool GUI_EoB::restParty() { drawMenuButtonBox(_screen->_curDim->sx << 3, _screen->_curDim->sy, _screen->_curDim->w << 3, _screen->_curDim->h, false, false); - int nonPoisoned = 0; + bool poisoned = false; for (int i = 0; i < 6; i++) { if (!_vm->testCharacter(i, 1)) continue; - nonPoisoned |= _vm->testCharacter(i, 0x10); + if (!_vm->testCharacter(i, 0x10)) + poisoned = true; } - if (!nonPoisoned) { + if (poisoned) { if (!confirmDialogue(59)) return false; } |