SAGA2: Another fix to make AmigaOS happier

This commit is contained in:
Eugene Sandulenko 2021-07-01 11:34:01 +02:00
parent 4f2e2d4edb
commit f8f2f2b1ca
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -150,10 +150,8 @@ SpellDisplayPrototype *SpellDisplayPrototypeList::operator[](SpellID s) {
void SpellDisplayPrototype::getColorTranslation(ColorTable map, Effectron *e) {
int32 i = colorMap[whichColorMap(effect, e)];
i = MAX(0, MIN(loadedColorMaps, i));
buildColorTable(map,
spellSchemes->_schemes[i]->bank,
11);
i = MAX<int32>(0, MIN(loadedColorMaps, i));
buildColorTable(map, spellSchemes->_schemes[i]->bank, 11);
}
/* ===================================================================== *