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];
int i;
if (strlen(getGameDataPath()) == 0) {
if (strlen(_gameDataPath.c_str()) == 0) {
// That's it! I give up!
if (getcwd(buffer, MAXPATHLEN) == NULL)
return;
} else
strncpy(buffer, getGameDataPath(), MAXPATHLEN);
strncpy(buffer, _gameDataPath.c_str(), MAXPATHLEN);
for (i = 0; i < MAXPATHLEN - 1; i++) {
if (buffer[i] == '\\')