From f12680f17902f34003b0f0f3a50f09f78ac0367c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 13 Aug 2004 11:05:38 +0000 Subject: [PATCH] Fixed a bug noted by mahnsawce --- amxmodx/modules.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 578b67e8..0167083a 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -619,6 +619,8 @@ AMX *MNF_GetAmxScript(int id) while (iter && id--) ++iter; + if ((*iter) == NULL) + return NULL; return (*iter).getAMX(); }