Fixed error when reloading dependant plugins using aliased natives (bug 5302, r=psychonic).
Fixed error when reloading dependant plugins using aliased natives (
bug 5302, r=psychonic).
1.1 --- a/core/PluginSys.cpp Sat May 26 19:17:49 2012 -0400
1.2 +++ b/core/PluginSys.cpp Sun May 27 01:50:57 2012 +0100
1.3 @@ -1504,7 +1504,9 @@
1.4 {
1.5 break;
1.6 }
1.7 - if (native->status == SP_NATIVE_UNBOUND && !(native->flags & SP_NTVFLAG_OPTIONAL))
1.8 + if (native->status == SP_NATIVE_UNBOUND
1.9 + && native->name[0] != '@'
1.10 + && !(native->flags & SP_NTVFLAG_OPTIONAL))
1.11 {
1.12 pPlugin->SetErrorState(Plugin_Error, "Native not found: %s", native->name);
1.13 return;