summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/inventoryhandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index d870eff38..f28e9b396 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -431,9 +431,8 @@ void InventoryHandler::processPlayerStorageStatus(Net::MessageIn &msg)
if (!mStorage)
mStorage = new Inventory(Inventory::STORAGE, size);
- Ea::InventoryItems::const_iterator it = mInventoryItems.begin();
- Ea::InventoryItems::const_iterator it_end = mInventoryItems.end();
- for (; it != it_end; ++it)
+ for (Ea::InventoryItems::const_iterator it = mInventoryItems.begin(),
+ it_end = mInventoryItems.end(); it != it_end; ++it)
{
mStorage->setItem((*it).slot, (*it).id, (*it).quantity,
(*it).refine, (*it).color, (*it).equip);