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

This commit is contained in:
Asher Baker 2012-05-27 01:34:46 +01:00
parent 956259b336
commit 71f73ddc3a

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;