diff --git a/src/decallib.cpp b/src/decallib.cpp index 0d0509840..7cb563a81 100644 --- a/src/decallib.cpp +++ b/src/decallib.cpp @@ -94,7 +94,7 @@ struct FDecalLib::FTranslation uint32_t StartColor, EndColor; FTranslation *Next; - uint16_t Index; + uint32_t Index; }; struct FDecalAnimator @@ -1119,7 +1119,7 @@ FDecalLib::FTranslation::FTranslation (uint32_t start, uint32_t end) table[i] = ColorMatcher.Pick (ri >> 24, gi >> 24, bi >> 24); } table[0] = table[1]; - Index = (uint16_t)TRANSLATION(TRANSLATION_Decals, tablei >> 8); + Index = (uint32_t)TRANSLATION(TRANSLATION_Decals, tablei >> 8); } FDecalLib::FTranslation *FDecalLib::FTranslation::LocateTranslation (uint32_t start, uint32_t end)