diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-21 23:19:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-21 23:19:29 +0300 |
commit | 5d6e4e9a5875d79173e9d2c867567dc26354240e (patch) | |
tree | c4970334ea3700e955562755c18b51746c744c60 /src/being/being.cpp | |
parent | 42f47e483da19079a937c4801ca94bd62d8dc970 (diff) | |
download | ManaVerse-5d6e4e9a5875d79173e9d2c867567dc26354240e.tar.gz ManaVerse-5d6e4e9a5875d79173e9d2c867567dc26354240e.tar.bz2 ManaVerse-5d6e4e9a5875d79173e9d2c867567dc26354240e.tar.xz ManaVerse-5d6e4e9a5875d79173e9d2c867567dc26354240e.zip |
Change useless if conditions.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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( |