NickMcConnell / NarSil

Unofficial rewrite of Sil 1.3.0
10 stars 2 forks source link

Eating/drinking an item with multiple effects can trigger NULL pointer dereference in obj_nourishes() #567

Closed backwardsEric closed 6 days ago

backwardsEric commented 1 week ago

That happens if the player's hunger meter is greater than or equal to PY_FOOD_MAX and one of the object's effects before the nourish effect does not have a dice expression associated with it. For instance, Orcish Liquor has the cure fear effect (with no dice expression) before the nourish effect.