diff --git a/apps/openmw/mwgui/hud.cpp b/apps/openmw/mwgui/hud.cpp index d4b8465fd3..0a28972a2a 100644 --- a/apps/openmw/mwgui/hud.cpp +++ b/apps/openmw/mwgui/hud.cpp @@ -416,6 +416,7 @@ namespace MWGui spell->mEffects.mList.front().mEffectID); std::string icon = effect->mIcon; + std::replace(icon.begin(), icon.end(), '/', '\\'); int slashPos = icon.rfind('\\'); icon.insert(slashPos + 1, "b_"); icon = Misc::ResourceHelpers::correctIconPath(icon, MWBase::Environment::get().getResourceSystem()->getVFS()); diff --git a/apps/openmw/mwgui/quickkeysmenu.cpp b/apps/openmw/mwgui/quickkeysmenu.cpp index 3169dd4f2f..b2913e8f07 100644 --- a/apps/openmw/mwgui/quickkeysmenu.cpp +++ b/apps/openmw/mwgui/quickkeysmenu.cpp @@ -302,6 +302,7 @@ namespace MWGui const ESM::MagicEffect* effect = esmStore.get().find(spell->mEffects.mList.front().mEffectID); std::string path = effect->mIcon; + std::replace(path.begin(), path.end(), '/', '\\'); int slashPos = path.rfind('\\'); path.insert(slashPos + 1, "b_"); path = Misc::ResourceHelpers::correctIconPath(path, MWBase::Environment::get().getResourceSystem()->getVFS());