Skip to content

Commit

Permalink
monster: add BUGFIX for mVar2 (#2290)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiteKat authored Jul 21, 2023
1 parent 3c92fec commit a982e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2382,7 +2382,7 @@ BOOL M_DoStand(int i)
if (Monst->_mAnimFrame == Monst->_mAnimLen)
M_Enemy(i);

Monst->_mVar2++;
Monst->_mVar2++; // BUGFIX: Should have a bound check as this will overflow if a player stays on same level for over 3 years.

return FALSE;
}
Expand Down

0 comments on commit a982e4c

Please sign in to comment.