core/Database.cpp
changeset 1406 f5c07ec3c052
parent 1330 ab94316bb52b
child 1656 b0b86d57530c
     1.1 --- a/core/Database.cpp	Tue Sep 11 12:29:58 2007 +0000
     1.2 +++ b/core/Database.cpp	Tue Sep 11 15:10:18 2007 +0000
     1.3 @@ -34,7 +34,6 @@
     1.4  #include "ShareSys.h"
     1.5  #include "sourcemod.h"
     1.6  #include "sm_stringutil.h"
     1.7 -#include "TextParsers.h"
     1.8  #include "Logger.h"
     1.9  #include "ExtensionSys.h"
    1.10  #include <stdlib.h>
    1.11 @@ -84,12 +83,12 @@
    1.12  	 * potentially empty/corrupt list, which would be very bad.
    1.13  	 */
    1.14  	m_pConfigLock->Lock();
    1.15 -	if ((err = g_TextParser.ParseFile_SMC(m_Filename, this, &line, NULL)) != SMCParse_Okay)
    1.16 +	if ((err = textparsers->ParseFile_SMC(m_Filename, this, &line, NULL)) != SMCParse_Okay)
    1.17  	{
    1.18  		g_Logger.LogError("[SM] Detected parse error(s) in file \"%s\"", m_Filename);
    1.19  		if (err != SMCParse_Custom)
    1.20  		{
    1.21 -			const char *txt = g_TextParser.GetSMCErrorString(err);
    1.22 +			const char *txt = textparsers->GetSMCErrorString(err);
    1.23  			g_Logger.LogError("[SM] Line %d: %s", line, txt);
    1.24  		}
    1.25  	}