Build Fix!

This commit is contained in:
Matt Woodrow 2009-02-18 15:30:43 +13:00
parent 13c1fd09c4
commit b61542242c

View File

@ -768,7 +768,7 @@ bool CGameConfig::Reparse(char *error, size_t maxlength)
/* Only allow .txt files */ /* Only allow .txt files */
int len = strlen(curFile); int len = strlen(curFile);
if (len > 4 && strcmp(curFile[len-4], ".txt") != 0) if (len > 4 && strcmp(&curFile[len-4], ".txt") != 0)
{ {
customDir->NextEntry(); customDir->NextEntry();
continue; continue;
@ -777,14 +777,14 @@ bool CGameConfig::Reparse(char *error, size_t maxlength)
UTIL_Format(path, sizeof(path), "%s/custom/%s", m_File, curFile); UTIL_Format(path, sizeof(path), "%s/custom/%s", m_File, curFile);
if (!EnterFile(path, error, maxlength)) if (!EnterFile(path, error, maxlength))
{ {
g_LibSys->CloseDirectory(customDir); g_LibSys.CloseDirectory(customDir);
return false; return false;
} }
customDir->NextEntry(); customDir->NextEntry();
} }
g_LibSys->CloseDirectory(customDir); g_LibSys.CloseDirectory(customDir);
return true; return true;
} }