Browse Source

Merge pull request #2210 from mewpull/bugfix-M_FallenFear

monster: add BUGFIX for M_FallenFear
pull/2283/head
Andi 5 years ago committed by GitHub
parent
commit
48191493eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Source/monster.cpp

1
Source/monster.cpp

@ -5993,6 +5993,7 @@ void M_FallenFear(int x, int y)
&& monster[mi]._mhitpoints >> 6 > 0) {
monster[mi]._mgoal = MGOAL_RETREAT;
monster[mi]._mgoalvar1 = rundist;
// BUGFIX: should be `monster[mi]`, was `monster[i]`.
monster[mi]._mdir = GetDirection(x, y, monster[i]._mx, monster[i]._my);
}
}

Loading…
Cancel
Save