1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-03 18:45:34 +00:00

Don't attempt to load external keyframes for non-NIF files

This commit is contained in:
scrawl 2015-12-03 20:11:28 +01:00
parent 795f6d77f2
commit 1ec338f19d

View file

@ -394,6 +394,8 @@ namespace MWRender
if(kfname.size() > 4 && kfname.compare(kfname.size()-4, 4, ".nif") == 0) if(kfname.size() > 4 && kfname.compare(kfname.size()-4, 4, ".nif") == 0)
kfname.replace(kfname.size()-4, 4, ".kf"); kfname.replace(kfname.size()-4, 4, ".kf");
else
return;
if(!mResourceSystem->getVFS()->exists(kfname)) if(!mResourceSystem->getVFS()->exists(kfname))
return; return;