Merge branch 'bug-fix-7105' into 'master'

Use a wider type when converting to a signed type

Closes #7105

See merge request OpenMW/openmw!2543
7098-improve-post-process-behavior-with-transparent-objects
psi29a 2 years ago
commit 7662fee47d

@ -199,10 +199,10 @@ std::string Misc::ResourceHelpers::getLODMeshName(
return "";
}
}();
for (char l = lod; l >= 0; --l)
for (int l = lod; l >= 0; --l)
{
std::stringstream patern;
patern << distantMeshPattern << "_" << int(l);
patern << distantMeshPattern << "_" << l;
std::string const meshName = getBestLODMeshName(resPath, vfs, patern.str());
if (meshName != resPath)
return meshName;

Loading…
Cancel
Save