Update gameDataPath() calls in engine, to fix compile

svn-id: r21541
This commit is contained in:
Travis Howell 2006-04-01 23:31:51 +00:00
parent 3de55677b9
commit a2c4795f32

View file

@ -111,12 +111,12 @@ void Engine::checkCD() {
char buffer[MAXPATHLEN]; char buffer[MAXPATHLEN];
int i; int i;
if (strlen(getGameDataPath()) == 0) { if (strlen(_gameDataPath.c_str()) == 0) {
// That's it! I give up! // That's it! I give up!
if (getcwd(buffer, MAXPATHLEN) == NULL) if (getcwd(buffer, MAXPATHLEN) == NULL)
return; return;
} else } else
strncpy(buffer, getGameDataPath(), MAXPATHLEN); strncpy(buffer, _gameDataPath.c_str(), MAXPATHLEN);
for (i = 0; i < MAXPATHLEN - 1; i++) { for (i = 0; i < MAXPATHLEN - 1; i++) {
if (buffer[i] == '\\') if (buffer[i] == '\\')