diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-20 18:32:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-20 21:40:23 +0300 |
commit | f3850f2cf7f4428eed3be0efe9a7c440b9e4d950 (patch) | |
tree | cba59ab97c58ef387af91f7af9b7523b3d44c4f7 /src/resources/dye.cpp | |
parent | 916433cb8ec57510af08fb5e1549076a7cb420d8 (diff) | |
download | mv-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.tar.gz mv-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.tar.bz2 mv-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.tar.xz mv-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.zip |
Fix code style.
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 df26ec1b7..cfa796fec 100644 --- a/src/resources/dye.cpp +++ b/src/resources/dye.cpp @@ -51,7 +51,7 @@ DyePalette::DyePalette(const std::string &description, int8_t blockSize) {0, 0, 0, 0} }; - for (int i = 0, colorIdx = 0; i < blockSize && colorIdx < dyePalateSize; + for (int i = 0, colorIdx = 0; i < blockSize && colorIdx < 4; i +=2, colorIdx ++) { color.value[colorIdx] = static_cast<unsigned char>(( |