Fixed error when reloading dependant plugins using aliased natives (bug 5302, r=psychonic).

This commit is contained in:
Asher Baker 2012-05-27 01:50:57 +01:00
parent c9b7e9f9aa
commit f46c58deaa

View File

@ -1504,7 +1504,9 @@ void CPluginManager::TryRefreshDependencies(CPlugin *pPlugin)
{
break;
}
if (native->status == SP_NATIVE_UNBOUND && !(native->flags & SP_NTVFLAG_OPTIONAL))
if (native->status == SP_NATIVE_UNBOUND
&& native->name[0] != '@'
&& !(native->flags & SP_NTVFLAG_OPTIONAL))
{
pPlugin->SetErrorState(Plugin_Error, "Native not found: %s", native->name);
return;