From 9013f1038a13d7d2c2bf707d6e860de258fb9d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Nov=C3=A1k?= Date: Fri, 2 May 2025 09:24:53 +0200 Subject: [PATCH] improve previous commit --- game/inv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/inv.c b/game/inv.c index fcaa2f8..43b497d 100644 --- a/game/inv.c +++ b/game/inv.c @@ -3099,7 +3099,6 @@ void unwire_shop(void) norefresh=0; wire_proc=wire_shop; inv_view_mode=old_inv_view_mode; - memset(shp_item_map, 0, sizeof(shp_item_map)); } void wire_shop(void) @@ -3208,6 +3207,7 @@ char _exit_shop(int id, int xa, int ya,int xr,int yr) { xr,yr,xa,ya,id; SEND_LOG("(SHOP) Exiting shop..."); + memset(shp_item_map, 0, sizeof(shp_item_map)); if (cur_owner==-1) { free(picked_item);