From a2edcc38b15cb1f5431c3125f488533548c8b750 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sun, 25 Jul 2004 13:18:38 +0000 Subject: [PATCH] Fixed minor bug --- amxmodx/amx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/amx.cpp b/amxmodx/amx.cpp index f5b3843c..27584457 100755 --- a/amxmodx/amx.cpp +++ b/amxmodx/amx.cpp @@ -1255,7 +1255,7 @@ int AMXAPI amx_NameLength(AMX *amx, int *length) *length=*namelength; assert(hdr->file_version>=7); /* name table exists only for file version 7+ */ } else { - *length=hdr->defsize - sizeof(uint32_t); + *length=hdr->defsize - sizeof(cell); } /* if */ return AMX_ERR_NONE; }