Fixed error when reloading dependant plugins using aliased natives (bug 5302, r=psychonic).
authorAsher Baker <asherkin@gmail.com>
Sun May 27 01:50:57 2012 +0100 (2012-05-27)
changeset 3507d1b6fde18611
parent 3506 210bbfb16156
child 3508 a2b92c4a2544
Fixed error when reloading dependant plugins using aliased natives (bug 5302, r=psychonic).
core/PluginSys.cpp
     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;