summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-18 00:44:57 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-18 00:44:57 +0200
commitcaf715fc482e700d80eab7592a4e61e4a0417294 (patch)
treecf56cbc24ed0ef245ef0950f4079c4e7f61b53d7 /src
parent8766149dc12d197205b1632ec6e9fc663de05990 (diff)
downloadmanaserv-caf715fc482e700d80eab7592a4e61e4a0417294.tar.gz
manaserv-caf715fc482e700d80eab7592a4e61e4a0417294.tar.bz2
manaserv-caf715fc482e700d80eab7592a4e61e4a0417294.tar.xz
manaserv-caf715fc482e700d80eab7592a4e61e4a0417294.zip
Fixed a crash when dealing with unknown equipped items.
Diffstat (limited to 'src')
-rw-r--r--src/game-server/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/inventory.cpp b/src/game-server/inventory.cpp
index 1eaf8b91..e244f651 100644
--- a/src/game-server/inventory.cpp
+++ b/src/game-server/inventory.cpp
@@ -119,7 +119,7 @@ void Inventory::initialize()
<< it2->second.itemId << " from the equipment of '"
<< mCharacter->getName()
<< "'!");
- mPoss->equipSlots.erase(++it2);
+ mPoss->equipSlots.erase(it2++);
continue;
}