Fixed minor bug

This commit is contained in:
Pavol Marko 2004-07-25 13:18:38 +00:00
parent 5e14f93868
commit a2edcc38b1

View File

@ -1255,7 +1255,7 @@ int AMXAPI amx_NameLength(AMX *amx, int *length)
*length=*namelength; *length=*namelength;
assert(hdr->file_version>=7); /* name table exists only for file version 7+ */ assert(hdr->file_version>=7); /* name table exists only for file version 7+ */
} else { } else {
*length=hdr->defsize - sizeof(uint32_t); *length=hdr->defsize - sizeof(cell);
} /* if */ } /* if */
return AMX_ERR_NONE; return AMX_ERR_NONE;
} }