core/smn_filesystem.cpp
changeset 2193 db7c6362f3f2
parent 2042 4a2faafca477
child 2289 44045ead61cd
     1.1 --- a/core/smn_filesystem.cpp	Thu Jul 10 01:26:02 2008 +0000
     1.2 +++ b/core/smn_filesystem.cpp	Fri Jul 11 08:18:43 2008 +0000
     1.3 @@ -573,7 +573,7 @@
     1.4  	char buffer[1024];
     1.5  	size_t len = g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 1);
     1.6  
     1.7 -	if (pContext->GetContext()->n_err != SP_ERROR_NONE)
     1.8 +	if (pContext->GetLastNativeError() != SP_ERROR_NONE)
     1.9  	{
    1.10  		return 0;
    1.11  	}
    1.12 @@ -599,7 +599,7 @@
    1.13  	char buffer[1024];
    1.14  	g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 1);
    1.15  
    1.16 -	if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.17 +	if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.18  	{
    1.19  		return 0;
    1.20  	}
    1.21 @@ -617,7 +617,7 @@
    1.22  	char buffer[1024];
    1.23  	g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 1);
    1.24  
    1.25 -	if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.26 +	if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.27  	{
    1.28  		return 0;
    1.29  	}
    1.30 @@ -670,7 +670,7 @@
    1.31  	g_SourceMod.SetGlobalTarget(SOURCEMOD_SERVER_LANGUAGE);
    1.32  	g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);
    1.33  
    1.34 -	if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.35 +	if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.36  	{
    1.37  		return 0;
    1.38  	}
    1.39 @@ -701,7 +701,7 @@
    1.40  	g_SourceMod.SetGlobalTarget(SOURCEMOD_SERVER_LANGUAGE);
    1.41  	g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);
    1.42  
    1.43 -	if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.44 +	if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.45  	{
    1.46  		return 0;
    1.47  	}