Fixed typo in too-many-params native error message (r=psychonic).
Fixed typo in too-many-params native error message (r=psychonic).
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 */