From ca0a32a5464cacfdcaf1248bec16b8bec46a5888 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sat, 29 May 2004 12:22:33 +0000 Subject: [PATCH] AMXX won't crash now on invalid plugin path --- amxmodx/CForward.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/CForward.cpp b/amxmodx/CForward.cpp index 9366bf3d..b3f12fcd 100755 --- a/amxmodx/CForward.cpp +++ b/amxmodx/CForward.cpp @@ -43,7 +43,7 @@ CForward::CForward(const char *name, ForwardExecType et, int numParams, const Fo AMXForward *tmp = NULL; for (CPluginMngr::iterator iter = g_plugins.begin(); iter; ++iter) { - if (amx_FindPublic((*iter).getAMX(), name, &func) == AMX_ERR_NONE) + if ((*iter).isValid() && amx_FindPublic((*iter).getAMX(), name, &func) == AMX_ERR_NONE) { tmp = new AMXForward; if (!tmp)