aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/engine.cpp4
1 files changed, 2 insertions, 2 deletions
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] == '\\')