Fix some typo and fix mac.

This commit is contained in:
Arkshine
2014-04-18 22:22:09 +02:00
parent 3d732bbbb6
commit 512e3ff61c
2 changed files with 4 additions and 2 deletions

View File

@ -777,7 +777,9 @@ static cell AMX_NATIVE_CALL ArrayFindString(AMX* amx, cell* params)
cell *b, *a = get_amxaddr(amx, params[2]);
size_t cellcount = vec->GetCellCount();
size_t a_len = max(1, amxstring_len(a));
size_t a_len = amxstring_len(a);
if (a_len < 1)
a_len = 1;
size_t len = a_len > cellcount ? cellcount : a_len;
for (int i = 0; i < vec->Size(); i++)