From 9f1bb9345c1a0ec75e08eb63d123af7e0e5a1668 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 13 Aug 2004 11:20:05 +0000 Subject: [PATCH] REALLY fixed bug this time (thanks fsfod and mahnsawce) --- amxmodx/modules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 0167083a..e7ed7d52 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -619,7 +619,7 @@ AMX *MNF_GetAmxScript(int id) while (iter && id--) ++iter; - if ((*iter) == NULL) + if (iter == NULL) return NULL; return (*iter).getAMX(); } @@ -630,7 +630,7 @@ const char *MNF_GetAmxScriptName(int id) while (iter && id--) ++iter; - if ((*iter) == NULL) + if (iter == NULL) return NULL; return (*iter).getName(); }