From f5a5d8f8e7dadbdb62576750500122d4bc51839e Mon Sep 17 00:00:00 2001 From: Arkshine Date: Tue, 27 May 2014 15:15:56 +0200 Subject: [PATCH] Undo last change and change cell cast to unsigned char. --- amxmodx/CForward.cpp | 4 ++-- amxmodx/amx.cpp | 2 +- amxmodx/amxmodx.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/amxmodx/CForward.cpp b/amxmodx/CForward.cpp index 20656e63..aa0c4230 100755 --- a/amxmodx/CForward.cpp +++ b/amxmodx/CForward.cpp @@ -100,7 +100,7 @@ cell CForward::execute(cell *params, ForwardPreparedArray *preparedArrays) if (!str) str = ""; amx_Allot(iter->pPlugin->getAMX(), (m_ParamTypes[i] == FP_STRING) ? strlen(str) + 1 : STRINGEX_MAXLENGTH, &realParams[i], &tmp); - amx_SetStringOld(tmp, str, 0, 1); + amx_SetStringOld(tmp, str, 0, 0); physAddrs[i] = tmp; } else if (m_ParamTypes[i] == FP_ARRAY) @@ -277,7 +277,7 @@ cell CSPForward::execute(cell *params, ForwardPreparedArray *preparedArrays) str = ""; cell *tmp; amx_Allot(m_Amx, (m_ParamTypes[i] == FP_STRING) ? strlen(str) + 1 : STRINGEX_MAXLENGTH, &realParams[i], &tmp); - amx_SetStringOld(tmp, str, 0, 1); + amx_SetStringOld(tmp, str, 0, 0); physAddrs[i] = tmp; } else if (m_ParamTypes[i] == FP_ARRAY) diff --git a/amxmodx/amx.cpp b/amxmodx/amx.cpp index d949b2cb..b351806c 100755 --- a/amxmodx/amx.cpp +++ b/amxmodx/amx.cpp @@ -4141,7 +4141,7 @@ int AMXAPI amx_SetStringOld(cell *dest,const char *source,int pack,int use_wchar dest[i]=(cell)(((wchar_t*)source)[i]); } else { for (i=0; i