mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 22:36:40 +00:00
Use a wider type when converting to a signed type
This commit is contained in:
parent
4daac2b816
commit
7e77e69a3c
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue