Fix case sensitive comparison

simplify_debugging
Evil Eye 2 years ago
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…
Cancel
Save