fixed a crash bug

This commit is contained in:
David Anderson 2006-06-05 08:06:57 +00:00
parent e7858b4cd7
commit 3fbf65103a

View File

@ -460,6 +460,11 @@ int CheckModules(AMX *amx, char error[128])
while (a) while (a)
{ {
CModule &cm = (*a); CModule &cm = (*a);
if (cm.getStatusValue() != MODULE_LOADED)
{
++a;
continue;
}
if (cm.getInfoNew() && if (cm.getInfoNew() &&
cm.getInfoNew()->logtag && cm.getInfoNew()->logtag &&
!strcasecmp(cm.getInfoNew()->logtag, buffer)) !strcasecmp(cm.getInfoNew()->logtag, buffer))