home · contact · privacy
In save_game(), check for error return code of fclose(), too.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 21 Aug 2013 02:54:47 +0000 (04:54 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 21 Aug 2013 02:54:47 +0000 (04:54 +0200)
src/misc.c

index dac4c974f07767228510e4444583a02be3f43d38..cf69c8a8ecc91b7813c50d0585c10124b91e8c81 100644 (file)
@@ -147,7 +147,7 @@ extern void save_game(struct World * world)
     err = err | write_map_objects(world, world->monster, file);
     err = err | write_map_objects(world, world->item, file);
     exit_err(err, world, err_msg);
-    fclose(file);
+    exit_err(fclose(file), world, err_msg);
 }