Fix error building the transpal utility

git-svn-id: https://svn.eduke32.com/eduke32@7272 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-12-15 01:38:48 +00:00
parent 8f7e842beb
commit d35058a8e5

View file

@ -97,7 +97,7 @@ int main(int argc, char **argv)
}
Bread(fil,origpalette,768);
Bread(fil,&orignumshades,2); orignumshades = B_LITTLE16(orignumshades);
orignumshades = min(max(orignumshades,1),256);
orignumshades = min(max<int>(orignumshades,1),256);
Bread(fil,origpalookup,(int)orignumshades<<8);
Bclose(fil);