SCUMM: INSANE: fix a long standing bug discovered by static code analysis

svn-id: r53581
This commit is contained in:
Eugene Sandulenko 2010-10-18 19:19:28 +00:00
parent 937cf6cd7a
commit dd7a2f75c0

View File

@ -1328,7 +1328,7 @@ void Insane::turnEnemy(bool battle) {
if (_actor[1].damage < _actor[1].maxdamage) {
_actor[1].lost = false;
} else {
if (!_actor[1].lost && !_actor[1].lost) {
if (!_actor[1].lost && !_actor[0].lost) {
_actor[1].lost = true;
_actor[1].act[2].state = 36;
_actor[1].act[1].state = 36;