mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 12:39:59 +00:00
Fix case sensitive comparison
This commit is contained in:
parent
45c84a2426
commit
3138eb406b
@ -135,7 +135,7 @@ std::string Misc::ResourceHelpers::correctActorModelPath(const std::string& resP
|
||||
else
|
||||
mdlname.insert(mdlname.begin(), 'x');
|
||||
std::string kfname = mdlname;
|
||||
if (kfname.ends_with(".nif"))
|
||||
if (Misc::StringUtils::ciEndsWith(kfname, ".nif"))
|
||||
kfname.replace(kfname.size() - 4, 4, ".kf");
|
||||
|
||||
if (!vfs->exists(kfname))
|
||||
|
Loading…
x
Reference in New Issue
Block a user