Skip to content

Commit

Permalink
fix: typo in thingType:unserialize (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro authored Jan 8, 2025
1 parent 0c59511 commit c491e8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/thingtype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c491e8f

Please sign in to comment.