R870 - shopkeeper grabbing backpack panic fix
The worn bits, et al, were not all cleared when the shopkeeper grabbed your pack. This currently affects only alternate (non-twoweap) and quivered objects. This could lead to a panic or a crash.
This commit is contained in:
@@ -3369,6 +3369,7 @@ register int fall;
|
||||
if ((obj->owornmask & ~(W_SWAPWEP|W_QUIVER)) != 0 ||
|
||||
(obj == uswapwep && u.twoweap) ||
|
||||
(obj->otyp == LEASH && obj->leashmon)) continue;
|
||||
setnotworn(obj);
|
||||
freeinv(obj);
|
||||
subfrombill(obj, shkp);
|
||||
(void) add_to_minv(shkp, obj); /* may free obj */
|
||||
|
||||
Reference in New Issue
Block a user