From b61542242ca52e2203c6eddae7efdd9ba997e10d Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Wed, 18 Feb 2009 15:30:43 +1300 Subject: [PATCH] Build Fix! --- core/GameConfigs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/GameConfigs.cpp b/core/GameConfigs.cpp index 169dcef2..4895d914 100644 --- a/core/GameConfigs.cpp +++ b/core/GameConfigs.cpp @@ -768,7 +768,7 @@ bool CGameConfig::Reparse(char *error, size_t maxlength) /* Only allow .txt files */ int len = strlen(curFile); - if (len > 4 && strcmp(curFile[len-4], ".txt") != 0) + if (len > 4 && strcmp(&curFile[len-4], ".txt") != 0) { customDir->NextEntry(); continue; @@ -777,14 +777,14 @@ bool CGameConfig::Reparse(char *error, size_t maxlength) UTIL_Format(path, sizeof(path), "%s/custom/%s", m_File, curFile); if (!EnterFile(path, error, maxlength)) { - g_LibSys->CloseDirectory(customDir); + g_LibSys.CloseDirectory(customDir); return false; } customDir->NextEntry(); } - g_LibSys->CloseDirectory(customDir); + g_LibSys.CloseDirectory(customDir); return true; }