From c491e8f2e873e169684383e158242ab24396da9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Ja=C5=82ocha?= Date: Wed, 8 Jan 2025 18:02:21 +0100 Subject: [PATCH] fix: typo in thingType:unserialize (#1025) --- src/client/thingtype.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/thingtype.cpp b/src/client/thingtype.cpp index 7dcd376bd4..a3cb6ecef5 100644 --- a/src/client/thingtype.cpp +++ b/src/client/thingtype.cpp @@ -517,6 +517,8 @@ void ThingType::unserialize(const uint16_t clientId, const ThingCategory categor m_spritesIndex.resize(totalSpritesCount + totalSprites); for (int j = totalSpritesCount; j < (totalSpritesCount + totalSprites); ++j) m_spritesIndex[j] = g_game.getFeature(Otc::GameSpritesU32) ? fin->getU32() : fin->getU16(); + + totalSpritesCount += totalSprites; } m_textureData.resize(m_animationPhases);