From a1a02150d710df2838060445b9ad447689538985 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sun, 23 Dec 2012 14:23:32 -0800 Subject: Enumify some more things ... maybe even everything --- src/map/storage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/storage.cpp') diff --git a/src/map/storage.cpp b/src/map/storage.cpp index 041a735..39510bc 100644 --- a/src/map/storage.cpp +++ b/src/map/storage.cpp @@ -232,7 +232,7 @@ int storage_storageadd(struct map_session_data *sd, int index, int amount) if (storage_additem(sd, stor, &sd->status.inventory[index], amount) == 0) { // remove item from inventory - pc_unequipinvyitem(sd, index, 0); + pc_unequipinvyitem(sd, index, CalcStatus::NOW); pc_delitem(sd, index, amount, 0); } @@ -246,7 +246,7 @@ int storage_storageadd(struct map_session_data *sd, int index, int amount) int storage_storageget(struct map_session_data *sd, int index, int amount) { struct storage *stor; - int flag; + PickupFail flag; nullpo_ret(sd); nullpo_ret(stor = account2storage2(sd->status.account_id)); @@ -260,7 +260,7 @@ int storage_storageget(struct map_session_data *sd, int index, int amount) if (amount < 1 || amount > stor->storage_[index].amount) return 0; - if ((flag = pc_additem(sd, &stor->storage_[index], amount)) == 0) + if ((flag = pc_additem(sd, &stor->storage_[index], amount)) == PickupFail::OKAY) storage_delitem(sd, stor, index, amount); else clif_additem(sd, 0, 0, flag); -- cgit v1.2.3-70-g09d2