summaryrefslogtreecommitdiffstats
path: root/src/game-server
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-10-21 19:35:01 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-10-21 19:35:01 +0000
commitee68245b1ff2af84f749c14841462328db9ed432 (patch)
tree740b0897817cb286e66f78b194e3da9641fc9ccc /src/game-server
parentfcafa58b344a9c47a8e67227fcffe7690953c648 (diff)
downloadmanaserv-ee68245b1ff2af84f749c14841462328db9ed432.tar.gz
manaserv-ee68245b1ff2af84f749c14841462328db9ed432.tar.xz
manaserv-ee68245b1ff2af84f749c14841462328db9ed432.zip
Fixed some compile warnings.
Diffstat (limited to 'src/game-server')
-rw-r--r--src/game-server/resourcemanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game-server/resourcemanager.cpp b/src/game-server/resourcemanager.cpp
index 8816e8c..562b20a 100644
--- a/src/game-server/resourcemanager.cpp
+++ b/src/game-server/resourcemanager.cpp
@@ -79,7 +79,8 @@ void ResourceManager::initialize()
#else
// Retrieve the current path
char programPath[256];
- getcwd(programPath, 256);
+ if (!getcwd(programPath, 256))
+ strcpy(programPath, ".");
strncat(programPath, "/data", 256 - strlen(programPath) - 1);
// Create our directory structure