[Scummvm-git-logs] scummvm master -> f8f2f2b1ca8040230d7480260357805af0fdb26d

sev- sev at scummvm.org
Thu Jul 1 09:34:26 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f8f2f2b1ca SAGA2: Another fix to make AmigaOS happier


Commit: f8f2f2b1ca8040230d7480260357805af0fdb26d
    https://github.com/scummvm/scummvm/commit/f8f2f2b1ca8040230d7480260357805af0fdb26d
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-07-01T11:34:01+02:00

Commit Message:
SAGA2: Another fix to make AmigaOS happier

Changed paths:
    engines/saga2/speldraw.cpp


diff --git a/engines/saga2/speldraw.cpp b/engines/saga2/speldraw.cpp
index dbdb4274be..d3b5556b6f 100644
--- a/engines/saga2/speldraw.cpp
+++ b/engines/saga2/speldraw.cpp
@@ -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);
 }
 
 /* ===================================================================== *




More information about the Scummvm-git-logs mailing list