diff options
-rw-r--r-- | src/being/being.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index f28ea591b..566720b0c 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -1920,6 +1920,10 @@ void Being::setSprite(const unsigned int slot, const int id, if (slot >= mSpriteColorsIds.size()) mSpriteColorsIds.resize(slot + 1, 1); + // here probably need more complex condition + if (slot && mSpriteIDs[slot] == id) + return; + // id = 0 means unequip if (id == 0) { |