Blob Blame Raw
diff -up blobwars-1.19/src/main.cpp~ blobwars-1.19/src/main.cpp
--- blobwars-1.19/src/main.cpp~	2011-04-17 16:56:56.000000000 +0200
+++ blobwars-1.19/src/main.cpp	2011-04-22 19:34:54.114423485 +0200
@@ -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;