[Scummvm-git-logs] scummvm master -> 27bbc7e5a98e34a7fefcfc25ed33863a06103c2a
dreammaster
dreammaster at scummvm.org
Sun Apr 1 04:17:43 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
27bbc7e5a9 XEEN: Fix crash using ranged spells during combat
Commit: 27bbc7e5a98e34a7fefcfc25ed33863a06103c2a
https://github.com/scummvm/scummvm/commit/27bbc7e5a98e34a7fefcfc25ed33863a06103c2a
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-03-31T22:17:41-04:00
Commit Message:
XEEN: Fix crash using ranged spells during combat
Changed paths:
engines/xeen/combat.cpp
diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp
index b1ecd77..baff2f1 100644
--- a/engines/xeen/combat.cpp
+++ b/engines/xeen/combat.cpp
@@ -1872,7 +1872,7 @@ void Combat::rangedAttack(PowType powNum) {
_attackDurationCtr = -1;
if (_monster2Attack != -1) {
- _attackDurationCtr--;
+ _attackDurationCtr = attackDurationCtr - 1;
if (attackMonsters.empty())
attackMonsters.resize(1);
attackMonsters[0] = monster2Attack;
More information about the Scummvm-git-logs
mailing list