summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-31 13:41:30 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-31 13:41:30 +0300
commit2c5f561a338d0db3fa68d72e65f41ab874fe30b0 (patch)
treea37037fa9021e8207f26635db933e4640d0bd7a2 /src/actormanager.cpp
parent3d32a17af9cdfffda1e1612afeef976fbe218212 (diff)
downloadmanaplus-2c5f561a338d0db3fa68d72e65f41ab874fe30b0.tar.gz
manaplus-2c5f561a338d0db3fa68d72e65f41ab874fe30b0.tar.bz2
manaplus-2c5f561a338d0db3fa68d72e65f41ab874fe30b0.tar.xz
manaplus-2c5f561a338d0db3fa68d72e65f41ab874fe30b0.zip
Fix compilation warning.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index dd88bc7bb..ba9576aa7 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -1740,9 +1740,9 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing,
const size_t sz = srcBeing->getSpritesCount();
for (size_t slot = 0; slot < sz; slot ++)
{
- const int id = srcBeing->getSpriteID(slot);
+ const int spriteId = srcBeing->getSpriteID(slot);
const unsigned char color = srcBeing->getSpriteColor(slot);
- dstBeing->setSprite(slot, id, "", color, false);
+ dstBeing->setSprite(slot, spriteId, "", color, false);
}
const int hairSlot = Net::getCharServerHandler()->hairSprite();
const int hairStyle = -srcBeing->getSpriteID(hairSlot);