Skip to content

Commit

Permalink
Bugfix: dereference find_count pointer while in "Run and Find" mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael R. Cook committed Aug 26, 2017
1 parent b55c778 commit 95dc308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dungeon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,8 @@ static void executeInputCommands(char *command, int *find_count) {

if (running_counter != 0) {
playerRunAndFind();
find_count--;
if (find_count == 0) {
*find_count -= 1;
if (*find_count == 0) {
playerEndRunning();
}
putQIO();
Expand Down

0 comments on commit 95dc308

Please sign in to comment.