mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Merge pull request #1252 from MiroslavR/correctActorModelPath
Fix correctActorModelPath
This commit is contained in:
commit
969dda2e41
1 changed files with 1 additions and 3 deletions
|
@ -127,9 +127,7 @@ std::string Misc::ResourceHelpers::correctBookartPath(const std::string &resPath
|
||||||
std::string Misc::ResourceHelpers::correctActorModelPath(const std::string &resPath, const VFS::Manager* vfs)
|
std::string Misc::ResourceHelpers::correctActorModelPath(const std::string &resPath, const VFS::Manager* vfs)
|
||||||
{
|
{
|
||||||
std::string mdlname = resPath;
|
std::string mdlname = resPath;
|
||||||
std::string::size_type p = mdlname.rfind('\\');
|
std::string::size_type p = mdlname.find_last_of("/\\");
|
||||||
if(p == std::string::npos)
|
|
||||||
p = mdlname.rfind('/');
|
|
||||||
if(p != std::string::npos)
|
if(p != std::string::npos)
|
||||||
mdlname.insert(mdlname.begin()+p+1, 'x');
|
mdlname.insert(mdlname.begin()+p+1, 'x');
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue