Fixed typo in too-many-params native error message (r=psychonic).
authorPeace-Maker <januk@freenet.de>
Wed Jul 17 08:05:42 2013 -0400 (2013-07-17)
changeset 39460fe6ce0499d1
parent 3945 da8ce892f99d
child 3947 999d29e113db
Fixed typo in too-many-params native error message (r=psychonic).
core/logic/smn_fakenatives.cpp
     1.1 --- a/core/logic/smn_fakenatives.cpp	Tue Jul 16 20:45:02 2013 -0400
     1.2 +++ b/core/logic/smn_fakenatives.cpp	Wed Jul 17 08:05:42 2013 -0400
     1.3 @@ -50,7 +50,7 @@
     1.4  	/* Check if too many parameters were passed */
     1.5  	if (params[0] > SP_MAX_EXEC_PARAMS)
     1.6  	{
     1.7 -		return pContext->ThrowNativeError("Called native with too many parameters (%d>%d)", params[9], SP_MAX_EXEC_PARAMS);
     1.8 +		return pContext->ThrowNativeError("Called native with too many parameters (%d>%d)", params[0], SP_MAX_EXEC_PARAMS);
     1.9  	}
    1.10  
    1.11  	/* Check if the native is paused */