From 5d6e4e9a5875d79173e9d2c867567dc26354240e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 21 Aug 2017 23:19:29 +0300 Subject: Change useless if conditions. --- src/being/being.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index 89fc9bfd1..914462892 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -3242,10 +3242,7 @@ void Being::setSpriteColor(const unsigned int slot, const int id = beingSlot.spriteId; // id = 0 means unequip - if (id == 0) - { - } - else + if (id != 0) { const ItemInfo &info = ItemDB::get(id); const std::string &restrict filename = info.getSprite( -- cgit v1.2.3-70-g09d2