From a2c4795f326e62fe8ff74ce0e29e0174d4dab330 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 1 Apr 2006 23:31:51 +0000 Subject: Update gameDataPath() calls in engine, to fix compile svn-id: r21541 --- base/engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base') diff --git a/base/engine.cpp b/base/engine.cpp index 02ed7d1cdb..1d941df5bc 100644 --- a/base/engine.cpp +++ b/base/engine.cpp @@ -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] == '\\') -- cgit v1.2.3