1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-07-04 22:41:34 +00:00

Fix case sensitive comparison

This commit is contained in:
Evil Eye 2023-05-22 18:18:01 +02:00
parent 45c84a2426
commit 3138eb406b

View file

@ -135,7 +135,7 @@ std::string Misc::ResourceHelpers::correctActorModelPath(const std::string& resP
else else
mdlname.insert(mdlname.begin(), 'x'); mdlname.insert(mdlname.begin(), 'x');
std::string kfname = mdlname; std::string kfname = mdlname;
if (kfname.ends_with(".nif")) if (Misc::StringUtils::ciEndsWith(kfname, ".nif"))
kfname.replace(kfname.size() - 4, 4, ".kf"); kfname.replace(kfname.size() - 4, 4, ".kf");
if (!vfs->exists(kfname)) if (!vfs->exists(kfname))