From a29f8d0651f74f26577d27207a367b3098be97f6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 10 May 2006 03:43:53 +0000 Subject: [PATCH] Cleaned up error reporting a bit --- amxmodx/modules.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index c367dd11..3df2bdfb 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -489,7 +489,7 @@ int CheckModules(AMX *amx, char error[128]) const char *type = "Module/Library"; if (err == LibErr_NoClass) type = "Module/Library Class"; - sprintf(error, "%s \"%s\" required for plugin. Check modules.ini.", type, buffer); + sprintf(error, "%s \"%s\" required for plugin. Check modules.ini.", type, dec.param1); return 0; } } @@ -497,7 +497,6 @@ int CheckModules(AMX *amx, char error[128]) } } - return 1; }