diff --git a/Source/Project64/Plugins/Plugin List.cpp b/Source/Project64/Plugins/Plugin List.cpp index 36bfe52e3..1ebd59077 100644 --- a/Source/Project64/Plugins/Plugin List.cpp +++ b/Source/Project64/Plugins/Plugin List.cpp @@ -98,7 +98,7 @@ void CPluginList::AddPluginFromDir ( CPath Dir) } Plugin.FullPath = Dir; - Plugin.FileName = ((stdstr &)Dir).substr(((stdstr &)m_PluginDir).length()); + Plugin.FileName = Dir.GetDirectory().substr(m_PluginDir.GetDirectory().length()); if (GetProcAddress(hLib,"DllAbout") != NULL) {