Skip to content

Commit

Permalink
Fix issue that erased all effects upon picking up a magnifying glass
Browse files Browse the repository at this point in the history
  • Loading branch information
elgambitero committed Aug 18, 2021
1 parent 27693e6 commit b11d394
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/goodies.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,13 +691,11 @@ void GD_reveal_hidden(){
SPR_update();
PHY_stop_time(REVEAL_TIME);
act = ACT_getFirst(&fx_buf);
if(act){
Actor * next;
do{
next = act->next;
while(act){
if(act->character == &FX_hidden){
if(!ACT_remove(act, &fx_buf)) SYS_die("NOT EMPTYING LIST");
act = next;
}while(next);
}
act = act->next;
}
}

Expand Down

0 comments on commit b11d394

Please sign in to comment.