summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-09 00:30:55 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-09 00:30:55 +0300
commit129f1a7c91466da4499e25225b66f84edb946126 (patch)
tree0d8e2ca397d24f09f5adb757a0ba57fe70a31ffa
parentde997e62656c4a60e069b4fedf5b1b96882c7931 (diff)
downloadmanaplus-129f1a7c91466da4499e25225b66f84edb946126.tar.gz
manaplus-129f1a7c91466da4499e25225b66f84edb946126.tar.bz2
manaplus-129f1a7c91466da4499e25225b66f84edb946126.tar.xz
manaplus-129f1a7c91466da4499e25225b66f84edb946126.zip
Fix compilation warnings.
-rw-r--r--src/actormanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 53f8c5a6e..b5ce5cbbc 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -1693,11 +1693,11 @@ void ActorManager::removePickupItem(const std::string &name)
#define addMobToList(name, mob) \
{\
- const int size = get##mob##sSize();\
- if (size > 0)\
+ const int sz = get##mob##sSize();\
+ if (sz > 0)\
{\
const int idx = get##mob##Index("");\
- if (idx + 1 == size)\
+ if (idx + 1 == sz)\
{\
std::list<std::string>::iterator itr = m##mob##s.end();\
-- itr;\