fix crash on NULL gi.invent
This commit is contained in:
@@ -152,7 +152,7 @@ money2u(struct monst* mon, long amount)
|
||||
mongold = splitobj(mongold, amount);
|
||||
obj_extract_self(mongold);
|
||||
|
||||
if (!merge_choice(gi.invent, mongold)
|
||||
if (!merge_choice(&gi.invent, mongold)
|
||||
&& inv_cnt(FALSE) >= invlet_basic) {
|
||||
You("have no room for the gold!");
|
||||
dropy(mongold);
|
||||
|
||||
Reference in New Issue
Block a user