Fixed invisible items after VIP expiration (#5521)

Fixes #5083

Thanks to @Everade and @mazvi
This commit is contained in:
Lemongrass3110
2020-11-06 23:19:41 +01:00
committed by GitHub
parent 008a2f9585
commit 9e68985f61
2 changed files with 12 additions and 6 deletions

View File

@@ -160,8 +160,8 @@ int storage_storageopen(struct map_session_data *sd)
}
sd->state.storage_flag = 1;
storage_sortitem(sd->storage.u.items_storage, sd->storage.max_amount);
clif_storagelist(sd, sd->storage.u.items_storage, sd->storage.max_amount, storage_getName(0));
storage_sortitem(sd->storage.u.items_storage, ARRAYLENGTH(sd->storage.u.items_storage));
clif_storagelist(sd, sd->storage.u.items_storage, ARRAYLENGTH(sd->storage.u.items_storage), storage_getName(0));
clif_updatestorageamount(sd, sd->storage.amount, sd->storage.max_amount);
return 0;
@@ -1149,8 +1149,8 @@ void storage_premiumStorage_open(struct map_session_data *sd) {
nullpo_retv(sd);
sd->state.storage_flag = 3;
storage_sortitem(sd->premiumStorage.u.items_storage, sd->premiumStorage.max_amount);
clif_storagelist(sd, sd->premiumStorage.u.items_storage, sd->premiumStorage.max_amount, storage_getName(sd->premiumStorage.stor_id));
storage_sortitem(sd->premiumStorage.u.items_storage, ARRAYLENGTH(sd->premiumStorage.u.items_storage));
clif_storagelist(sd, sd->premiumStorage.u.items_storage, ARRAYLENGTH(sd->premiumStorage.u.items_storage), storage_getName(sd->premiumStorage.stor_id));
clif_updatestorageamount(sd, sd->premiumStorage.amount, sd->premiumStorage.max_amount);
}