summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-06 15:59:30 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-06 15:59:30 +0300
commitaaacae5e2907e21ff7c0505fd4e48442ac809136 (patch)
tree90565c44c43a33ad970eeb34796da6e82ea798da /src
parent275ec929279e8a873ce971a3632aeb474e87955e (diff)
downloadplus-aaacae5e2907e21ff7c0505fd4e48442ac809136.tar.gz
plus-aaacae5e2907e21ff7c0505fd4e48442ac809136.tar.bz2
plus-aaacae5e2907e21ff7c0505fd4e48442ac809136.tar.xz
plus-aaacae5e2907e21ff7c0505fd4e48442ac809136.zip
Add possible missing initialisation in Being::recalcSpritesOrder.
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index bacae584d..911951789 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -4187,6 +4187,12 @@ void Being::recalcSpritesOrder() restrict2
const unsigned int hairSlot = charServerHandler->hairSprite();
+ for (size_t slot = sz; slot < 20; slot ++)
+ {
+ oldHide[slot] = 0;
+ updatedSprite[slot] = false;
+ }
+
for (size_t slot = 0; slot < sz; slot ++)
{
oldHide[slot] = mSpriteHide[slot];