aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2018-01-21 19:13:52 -0500
committerPaul Gilbert2018-01-21 19:13:52 -0500
commitce3b1af5c56d4752edc206801f6967173ecb8047 (patch)
treed915b0cc797ab74b99bdae1fd056a21851dea8e0 /engines/xeen
parentb21991a727c2b178df5af649c94495812d0f3237 (diff)
downloadscummvm-rg350-ce3b1af5c56d4752edc206801f6967173ecb8047.tar.gz
scummvm-rg350-ce3b1af5c56d4752edc206801f6967173ecb8047.tar.bz2
scummvm-rg350-ce3b1af5c56d4752edc206801f6967173ecb8047.zip
XEEN: Correctly skip over unconscious or dead chars during combat
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index 3045789a3d..7775ada410 100644
--- a/engines/xeen/interface.cpp
+++ b/engines/xeen/interface.cpp
@@ -1817,7 +1817,7 @@ void Interface::nextChar() {
if (combat._whosTurn < (int)combat._combatParty.size()) {
// If it's a party member, only allow them to become active if
// they're still conscious
- if (combat._combatParty[idx]->isDisabledOrDead())
+ if (combat._combatParty[combat._whosTurn]->isDisabledOrDead())
continue;
}