From 6cf6edb5b6831d8eae79212c9f97e960759819fb Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 29 Jul 2005 19:25:24 +0000 Subject: [PATCH] Fixed bug at16581, devicenull --- amxmodx/amxmodx.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 481ef1fe..451603b8 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -2801,9 +2801,14 @@ static cell AMX_NATIVE_CALL register_dictionary(AMX *amx, cell *params) static cell AMX_NATIVE_CALL plugin_flags(AMX *amx, cell *params) { - AMX_HEADER *hdr; - hdr = (AMX_HEADER *)amx->base; - return hdr->flags; + if (params[1]) + { + AMX_HEADER *hdr; + hdr = (AMX_HEADER *)amx->base; + return hdr->flags; + } + + return amx->flags; } // lang_exists(const name[]);