From 71f73ddc3a4ac3af1eee04a0ded0ad874cbe049e Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Sun, 27 May 2012 01:34:46 +0100 Subject: [PATCH] Fixed error when reloading dependant plugins using aliased natives (bug 5302, r=psychonic). --- core/PluginSys.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/PluginSys.cpp b/core/PluginSys.cpp index 9fb0b23b..9af84434 100644 --- a/core/PluginSys.cpp +++ b/core/PluginSys.cpp @@ -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;