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]); 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++)

View File

@ -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: