aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-12 22:00:50 -0400
committerPaul Gilbert2018-04-12 22:00:50 -0400
commit882b7182f399bbf34bf0831d2491e2866e306932 (patch)
treeb63551c9486adff6dc4b9dec3cd684e726e84b21 /engines
parent093d477a08631f1c6def79f9d0e5c967afea320d (diff)
downloadscummvm-rg350-882b7182f399bbf34bf0831d2491e2866e306932.tar.gz
scummvm-rg350-882b7182f399bbf34bf0831d2491e2866e306932.tar.bz2
scummvm-rg350-882b7182f399bbf34bf0831d2491e2866e306932.zip
XEEN: Fix for resetting speed table after monsters have died
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/combat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp
index e5e518fa37..21a743b59f 100644
--- a/engines/xeen/combat.cpp
+++ b/engines/xeen/combat.cpp
@@ -1093,7 +1093,7 @@ void Combat::setSpeedTable() {
if (_speedTable.empty()) {
_whosSpeed = 0;
} else if (_whosSpeed >= (int)_speedTable.size() || _speedTable[_whosSpeed] != oldSpeed) {
- for (_whosSpeed = 0; _whosSpeed < (int)charSpeeds.size(); ++_whosSpeed) {
+ for (_whosSpeed = 0; _whosSpeed < (int)_speedTable.size(); ++_whosSpeed) {
if (oldSpeed == _speedTable[_whosSpeed])
break;
}