diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-19 00:27:45 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-19 00:27:45 +0200 |
commit | b2ac4def24379db588ffa52ca63676710f18b4fc (patch) | |
tree | 09a76cb672d032cd6b8f41fd3f5afc6c3836839f /src/resources/dye.cpp | |
parent | f4792bc06f21335fc2d1171d937ea7645ca0c253 (diff) | |
download | manaplus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.gz manaplus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.bz2 manaplus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.xz manaplus-b2ac4def24379db588ffa52ca63676710f18b4fc.zip |
Fix code style and add small optimisations.
Diffstat (limited to 'src/resources/dye.cpp')
-rw-r--r-- | src/resources/dye.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/dye.cpp b/src/resources/dye.cpp index 7d92e12ce..2d621127b 100644 --- a/src/resources/dye.cpp +++ b/src/resources/dye.cpp @@ -161,7 +161,7 @@ void DyePalette::getColor(int intensity, int color[3]) const void DyePalette::getColor(double intensity, int color[3]) const { // Nothing to do here - if (mColors.size() == 0) + if (mColors.empty()) return; // Force range |