e3479b6
diff -up blobwars-1.19/src/main.cpp~ blobwars-1.19/src/main.cpp
e3479b6
--- blobwars-1.19/src/main.cpp~	2011-04-17 16:56:56.000000000 +0200
e3479b6
+++ blobwars-1.19/src/main.cpp	2011-04-22 19:34:54.114423485 +0200
e3479b6
@@ -104,7 +104,11 @@ int main(int argc, char *argv[])
e3479b6
 	#endif
e3479b6
 
e3479b6
 	#if RELEASE
e3479b6
-	chdir(PAKLOCATION);
e3479b6
+	if (chdir(PAKLOCATION))
e3479b6
+	{
e3479b6
+		perror("Could not chdir to " PAKLOCATION ":");
e3479b6
+		return 1;
e3479b6
+	}
e3479b6
 	#endif
e3479b6
 	
e3479b6
 	config.engine = &engine;