]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
fix a crash on saving a game
[xonotic/darkplaces.git] / fs.c
diff --git a/fs.c b/fs.c
index da708289997ea93e878fb9f24090a9b705ef5d90..ec93c091cca705081e8242d86ab9bd12c0cc0b85 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1939,7 +1939,7 @@ void FS_Init (void)
                                // truncate to just after the .app/
                                split[5] = 0;
                                // see if gamedir exists in Resources
-                               if (stat(va("%s/Contents/Resources/%s", fs_basedir, gamedirname1)), &statresult) == 0)
+                               if (stat(va("%s/Contents/Resources/%s", fs_basedir, gamedirname1), &statresult) == 0)
                                {
                                        // found gamedir inside Resources, use it
                                        strlcat(fs_basedir, "Contents/Resources/", sizeof(fs_basedir));