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