Impossible instead of segfault in cursed
commit86df94b281dc02c2018735f84c8c25f88f82913e
authorPasi Kallinen <paxed@alt.org>
Mon, 12 Dec 2016 15:42:02 +0000 (12 17:42 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 12 Dec 2016 15:42:06 +0000 (12 17:42 +0200)
tree2945656afd494ee55aefdc236cbc5ceb1040557c
parent2655910a0f03f26111bb41e947f5f8a6c8dcc2af
Impossible instead of segfault in cursed

While fuzz testing, I've seen segfault a handful of times in here,
coming from do_takeoff(). Looks like context.takeoff.what is stale,
having WORN_BLINDF, but we're not wearing the blindfold anymore.

Haven't been able to trace it down yet, so guard it with impossible.
src/do_wear.c