]> granicus.if.org Git - nethack/commit
get_cost_of_shop_item() crash
authorPatR <rankin@nethack.org>
Sun, 6 Jan 2019 10:36:41 +0000 (02:36 -0800)
committerPatR <rankin@nethack.org>
Sun, 6 Jan 2019 10:36:41 +0000 (02:36 -0800)
commita1fd4622f20fececfa4b8af94c032509fe890f56
treec0b137194781056ce93d55dbfcfd92e463ef9df5
parentab1bee17788877afd86066f668478f1449e5e773
get_cost_of_shop_item() crash

More shop price determination fallout.  After the most recent change
to get_cost_of_shop_item(), using ':' inside an engulfer carrying at
least one item while inside a shop would try to follow the item's
obj->ocontainer back-link and crash when that led to the engulfing
monster rather than to a container.
doc/fixes36.2
src/invent.c
src/shk.c