Fixed incorrect file name causing plugins to fail to load

This commit is contained in:
aschwant 2015-10-29 17:58:26 -06:00
parent c8401cd9d3
commit 2ed50708c1
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ void CPluginList::AddPluginFromDir ( CPath Dir)
}
Plugin.FullPath = Dir;
Plugin.FileName = Dir.GetDirectory().substr(m_PluginDir.GetDirectory().length());
std::string& fullPath = Dir;
std::string& pluginPath = m_PluginDir;
Plugin.FileName = fullPath.substr(pluginPath.length());
if (GetProcAddress(hLib,"DllAbout") != NULL)
{