]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/main.cpp
Check return value of chdir
[quix0rs-blobwars.git] / src / main.cpp
index e24da3195cd9368f02db07b14e52084112ea6be9..c5e9ba84954eafd151d7a51a5ee294aa0cceb79f 100644 (file)
@@ -104,7 +104,11 @@ int main(int argc, char *argv[])
        #endif
 
        #if RELEASE
-       chdir(PAKLOCATION);
+       if (chdir(PAKLOCATION))
+       {
+               perror("Could not chdir to " PAKLOCATION ":");
+               return 1;
+       }
        #endif
        
        config.engine = &engine;