Fixed minor bug
This commit is contained in:
parent
5e14f93868
commit
a2edcc38b1
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user