1
0
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:
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
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))