From 3fbf65103aa3e3ba74404857f6b13a9c4d03cdf6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 5 Jun 2006 08:06:57 +0000 Subject: [PATCH] fixed a crash bug --- amxmodx/modules.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index d3712e42..abdffbc7 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -460,6 +460,11 @@ int CheckModules(AMX *amx, char error[128]) while (a) { CModule &cm = (*a); + if (cm.getStatusValue() != MODULE_LOADED) + { + ++a; + continue; + } if (cm.getInfoNew() && cm.getInfoNew()->logtag && !strcasecmp(cm.getInfoNew()->logtag, buffer))