mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 14:55:36 +03:00
Fix some typo and fix mac.
This commit is contained in:
parent
3d732bbbb6
commit
512e3ff61c
@ -777,7 +777,9 @@ static cell AMX_NATIVE_CALL ArrayFindString(AMX* amx, cell* params)
|
|||||||
|
|
||||||
cell *b, *a = get_amxaddr(amx, params[2]);
|
cell *b, *a = get_amxaddr(amx, params[2]);
|
||||||
size_t cellcount = vec->GetCellCount();
|
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;
|
size_t len = a_len > cellcount ? cellcount : a_len;
|
||||||
|
|
||||||
for (int i = 0; i < vec->Size(); i++)
|
for (int i = 0; i < vec->Size(); i++)
|
||||||
|
@ -22,7 +22,7 @@ namespace SourceMod
|
|||||||
IQuery *PrepareQueryFmt(const char *fmt, va_list ap);
|
IQuery *PrepareQueryFmt(const char *fmt, va_list ap);
|
||||||
IQuery *PrepareQuery(const char *query);
|
IQuery *PrepareQuery(const char *query);
|
||||||
int QuoteString(const char *str, char buffer[], size_t maxlen, size_t *newsize);
|
int QuoteString(const char *str, char buffer[], size_t maxlen, size_t *newsize);
|
||||||
bool SqDatabase::SetCharacterSet(const char *characterset);
|
bool SetCharacterSet(const char *characterset);
|
||||||
private:
|
private:
|
||||||
void Disconnect();
|
void Disconnect();
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user