From 35ffbf8ca61b80eeb2b152064e66bf6384648a47 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 12 Sep 2004 22:16:56 +0000 Subject: [PATCH] Fixed API error --- dlls/csstats2/csstats/CRank.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/csstats2/csstats/CRank.cpp b/dlls/csstats2/csstats/CRank.cpp index 48838bcc..75e29463 100755 --- a/dlls/csstats2/csstats/CRank.cpp +++ b/dlls/csstats2/csstats/CRank.cpp @@ -130,7 +130,7 @@ void RankSystem::clear(){ bool RankSystem::loadCalc(const char* filename, char* error) { - if ((MF_LoadAmxScript(&calc.amx,&calc.code,filename,error)!=AMX_ERR_NONE)|| + if ((MF_LoadAmxScript(&calc.amx,&calc.code,filename,error,0)!=AMX_ERR_NONE)|| (MF_AmxAllot(&calc.amx, 8 , &calc.amxAddr1, &calc.physAddr1)!=AMX_ERR_NONE)|| (MF_AmxAllot(&calc.amx, 8 , &calc.amxAddr2, &calc.physAddr2)!=AMX_ERR_NONE)|| (MF_AmxFindPublic(&calc.amx,"get_score",&calc.func)!=AMX_ERR_NONE)){ @@ -305,4 +305,4 @@ void RankSystem::saveRank( const char* filename ) fwrite( &i , 1, sizeof(short int), bfp); // null terminator fclose(bfp); -} \ No newline at end of file +}