diff options
author | Paul Gilbert | 2017-12-16 21:51:46 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-12-16 21:51:46 -0500 |
commit | 93a89024e9306a1a3ee181ac66201f38bdfc077e (patch) | |
tree | 04112bfa5aee9948571b1556179db36ff5380c58 /engines/xeen | |
parent | 58fb6a4f8e065054ad9f2bcaaff4414e62d87a84 (diff) | |
download | scummvm-rg350-93a89024e9306a1a3ee181ac66201f38bdfc077e.tar.gz scummvm-rg350-93a89024e9306a1a3ee181ac66201f38bdfc077e.tar.bz2 scummvm-rg350-93a89024e9306a1a3ee181ac66201f38bdfc077e.zip |
XEEN: Fix crash when combat lasts multiple turns
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/interface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp index 5bbc6abea1..3147d0a47e 100644 --- a/engines/xeen/interface.cpp +++ b/engines/xeen/interface.cpp @@ -1693,8 +1693,8 @@ void Interface::doCombat() { // Handling for if the combat turn is complete if (combat.allHaveGone()) { - Common::fill(&combat._charsGone[0], &combat._charsGone[combat._charsGone.size()], false); - Common::fill(&combat._charsBlocked[0], &combat._charsBlocked[combat._charsBlocked.size()], false); + Common::fill(&combat._charsGone[0], &combat._charsGone[0] + combat._charsGone.size(), false); + Common::fill(&combat._charsBlocked[0], &combat._charsBlocked[0] + combat._charsBlocked.size(), false); combat.setSpeedTable(); combat._whosTurn = -1; combat._whosSpeed = -1; |