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:
@@ -182,6 +182,7 @@ fix firing attached iron ball when swallowed causing a sanity error
|
|||||||
fix vault guard impossible when he could not relocate in certain situation
|
fix vault guard impossible when he could not relocate in certain situation
|
||||||
fix temple priests or shopkeepers moving over other monsters
|
fix temple priests or shopkeepers moving over other monsters
|
||||||
fix hero still hiding under a statue shattered by a land mine
|
fix hero still hiding under a statue shattered by a land mine
|
||||||
|
fix helping a monster out of a pit addressing a deleted trap
|
||||||
|
|
||||||
|
|
||||||
Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository
|
Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository
|
||||||
|
|||||||
@@ -4346,8 +4346,8 @@ struct trap *ttmp;
|
|||||||
|
|
||||||
You("pull %s out of the pit.", mon_nam(mtmp));
|
You("pull %s out of the pit.", mon_nam(mtmp));
|
||||||
mtmp->mtrapped = 0;
|
mtmp->mtrapped = 0;
|
||||||
fill_pit(mtmp->mx, mtmp->my);
|
|
||||||
reward_untrap(ttmp, mtmp);
|
reward_untrap(ttmp, mtmp);
|
||||||
|
fill_pit(mtmp->mx, mtmp->my);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user