diff --git a/apps/openmw/mwrender/animation.cpp b/apps/openmw/mwrender/animation.cpp index 5b7d1db78a..64e961e22e 100644 --- a/apps/openmw/mwrender/animation.cpp +++ b/apps/openmw/mwrender/animation.cpp @@ -1508,10 +1508,10 @@ namespace MWRender } animationPath.replace(animationPath.size() - 4, 4, "/"); - for (const auto& name : resourceSystem->getVFS()->getRecursiveDirectoryIterator(animationPath)) + for (const VFS::Path::Normalized& name : resourceSystem->getVFS()->getRecursiveDirectoryIterator(animationPath)) { if (Misc::getFileExtension(name) == "nif") - loadBonesFromFile(node, VFS::Path::toNormalized(name), resourceSystem); + loadBonesFromFile(node, name, resourceSystem); } }