From bc20e165845816046366ba4a7972c1053abaa504 Mon Sep 17 00:00:00 2001 From: GustavoBlaze Date: Tue, 24 Jan 2017 14:58:11 -0200 Subject: [PATCH] Applying the otclient code style changing the variables names --- src/client/thingtype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/thingtype.cpp b/src/client/thingtype.cpp index d2407191..0705bac7 100644 --- a/src/client/thingtype.cpp +++ b/src/client/thingtype.cpp @@ -311,7 +311,7 @@ void ThingType::unserialize(uint16 clientId, ThingCategory category, const FileS stdext::throw_exception("a thing type has more than 4096 sprites"); m_spritesIndex.resize((realTotalSprites+totalSprites)); - for(int i = lastTotalSprites; i < (realTotalSprites+totalSprites); i++) + for(int i = realTotalSprites; i < (realTotalSprites+totalSprites); i++) m_spritesIndex[i] = g_game.getFeature(Otc::GameSpritesU32) ? fin->getU32() : fin->getU16(); realTotalSprites += totalSprites;