From aaacae5e2907e21ff7c0505fd4e48442ac809136 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 Jan 2017 15:59:30 +0300 Subject: Add possible missing initialisation in Being::recalcSpritesOrder. --- src/being/being.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/being') 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]; -- cgit v1.2.3-70-g09d2