diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-05-15 20:23:08 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-05-15 20:25:53 +0200 |
commit | da1cc91155771d5fa3ced443de0480db5aab49d0 (patch) | |
tree | 9c77ca919851bfd2ba810822fdc952b6fc37af51 /src | |
parent | eb3cb526d17260ccb4cbe527d12083e91d03ac5b (diff) | |
download | manaserv-da1cc91155771d5fa3ced443de0480db5aab49d0.tar.gz manaserv-da1cc91155771d5fa3ced443de0480db5aab49d0.tar.bz2 manaserv-da1cc91155771d5fa3ced443de0480db5aab49d0.tar.xz manaserv-da1cc91155771d5fa3ced443de0480db5aab49d0.zip |
Removed unused variable
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/attribute.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game-server/attribute.cpp b/src/game-server/attribute.cpp index e37087d7..91113f49 100644 --- a/src/game-server/attribute.cpp +++ b/src/game-server/attribute.cpp @@ -141,7 +141,7 @@ bool AttributeModifiersEffect::remove(double value, unsigned int id, if (!fullCheck) mStates.sort(durationCompare); /* Search only through those with a duration of 0. */ bool ret = false; - double temp; + for (std::list< AttributeModifierState * >::iterator it = mStates.begin(); it != mStates.end() && (fullCheck || !(*it)->mDuration);) { @@ -152,8 +152,6 @@ bool AttributeModifiersEffect::remove(double value, unsigned int id, continue; } - temp = (*it)->mValue; - delete *it; mStates.erase(it++); |