2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 18:24:55 +00:00

Windows fixes

This commit is contained in:
Jack Andersen
2017-10-29 21:29:32 -10:00
parent 3fcc50d82d
commit 6e73fddcf5
6 changed files with 10 additions and 7 deletions

View File

@@ -79,7 +79,7 @@ static const FourCC TypeTable[] =
CFactoryMgr::ETypeTable CFactoryMgr::FourCCToTypeIdx(FourCC fcc)
{
for (int i=0 ; i<4 ; ++i)
fcc.getChars()[i] = char(std::toupper(fcc.getChars()[i]));
fcc.getChars()[i] = char(toupper(fcc.getChars()[i]));
auto search = std::find_if(std::begin(TypeTable), std::end(TypeTable),
[fcc](const FourCC& test) { return test == fcc; });
if (search == std::end(TypeTable))