Fix addressing deleted trap when helping monster out of a pit
Move reward_untrap before fill_pit, as the trap may get deleted.
This commit is contained in:
@@ -4346,8 +4346,8 @@ struct trap *ttmp;
|
||||
|
||||
You("pull %s out of the pit.", mon_nam(mtmp));
|
||||
mtmp->mtrapped = 0;
|
||||
fill_pit(mtmp->mx, mtmp->my);
|
||||
reward_untrap(ttmp, mtmp);
|
||||
fill_pit(mtmp->mx, mtmp->my);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user