From 3863bd3cccbcda2cf414c9c7244da12c2e9b6cf0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 19 Jul 2005 16:12:48 +0000 Subject: [PATCH] Fixed bug where not-found natives were still valid --- amxmodx/modules.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 5342f448..ddca1677 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -332,6 +332,7 @@ int set_amxnatives(AMX* amx,char error[128]) if ( amx_Register(amx, core_Natives, -1) != AMX_ERR_NONE ) { sprintf(error, "Plugin uses an unknown function (name \"%s\") - check your modules.ini.", no_function); + return (amx->error = AMX_ERR_NATIVE); } return AMX_ERR_NONE;