summaryrefslogtreecommitdiff
path: root/src/resources/dye
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/dye')
-rw-r--r--src/resources/dye/dyepalette.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/dye/dyepalette.cpp b/src/resources/dye/dyepalette.cpp
index 401eaf7ca..5884554ed 100644
--- a/src/resources/dye/dyepalette.cpp
+++ b/src/resources/dye/dyepalette.cpp
@@ -69,7 +69,7 @@ DyePalette::DyePalette(const std::string &restrict description,
{
if (str.size() != 3)
continue;
- alpha = (hexDecode(str[1]) << 4) + hexDecode(str[2]);
+ alpha = CAST_U8((hexDecode(str[1]) << 4) + hexDecode(str[2]));
continue;
}
const DyeColor *const color = PaletteDB::getColor(str);