improve previous commit

This commit is contained in:
Ondřej Novák 2025-05-02 09:24:53 +02:00
parent 7ec2eb9e71
commit 9013f1038a

View file

@ -3099,7 +3099,6 @@ void unwire_shop(void)
norefresh=0; norefresh=0;
wire_proc=wire_shop; wire_proc=wire_shop;
inv_view_mode=old_inv_view_mode; inv_view_mode=old_inv_view_mode;
memset(shp_item_map, 0, sizeof(shp_item_map));
} }
void wire_shop(void) 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; xr,yr,xa,ya,id;
SEND_LOG("(SHOP) Exiting shop..."); SEND_LOG("(SHOP) Exiting shop...");
memset(shp_item_map, 0, sizeof(shp_item_map));
if (cur_owner==-1) if (cur_owner==-1)
{ {
free(picked_item); free(picked_item);