Fixed players getting stuck in storage

* Resolves an issue when the server saves character data and the character is in their storage resulting in the storage_flag being removed too early.
Thanks to @stealth62!
This commit is contained in:
aleos89 2016-04-07 11:04:22 -04:00
parent cedc56f74a
commit 09dd7bd77f

View File

@ -3236,8 +3236,6 @@ static void intif_parse_StorageSaved(int fd)
//ShowInfo("Inventory has been saved (AID: %d).\n", RFIFOL(fd, 2)); //ShowInfo("Inventory has been saved (AID: %d).\n", RFIFOL(fd, 2));
break; break;
case TABLE_STORAGE: //storage case TABLE_STORAGE: //storage
if (sd && sd->state.storage_flag == 1)
sd->state.storage_flag = 0;
//ShowInfo("Storage has been saved (AID: %d).\n", RFIFOL(fd, 2)); //ShowInfo("Storage has been saved (AID: %d).\n", RFIFOL(fd, 2));
break; break;
case TABLE_CART: // cart case TABLE_CART: // cart