summaryrefslogtreecommitdiff
path: root/src/resources/dye.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-20 18:32:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-20 21:40:23 +0300
commitf3850f2cf7f4428eed3be0efe9a7c440b9e4d950 (patch)
treecba59ab97c58ef387af91f7af9b7523b3d44c4f7 /src/resources/dye.cpp
parent916433cb8ec57510af08fb5e1549076a7cb420d8 (diff)
downloadmanaverse-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.tar.gz
manaverse-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.tar.bz2
manaverse-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.tar.xz
manaverse-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.zip
Fix code style.
Diffstat (limited to 'src/resources/dye.cpp')
-rw-r--r--src/resources/dye.cpp2
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>((