fix crash on NULL gi.invent

This commit is contained in:
nhmall
2024-01-31 12:51:33 -05:00
parent 95e42bf692
commit 378648bd9c
6 changed files with 29 additions and 27 deletions
+1 -1
View File
@@ -2717,7 +2717,7 @@ mhitm_ad_sgld(
if (mongold) {
obj_extract_self(mongold);
if (merge_choice(gi.invent, mongold)
if (merge_choice(&gi.invent, mongold)
|| inv_cnt(FALSE) < invlet_basic) {
addinv(mongold);
Your("purse feels heavier.");