home · contact · privacy
Use standard-conformant exit.
[plomrogue] / src / main.c
index b65108b7b4ec4ae3b3a2c93e52a3490ab8fa068f..4ed9ba8f12990c37fd072783276654be493e91ca 100644 (file)
@@ -50,7 +50,7 @@ int main (int argc, char *argv[]) {
     player.pos.x = read_uint16_bigendian(file) - 1;
     player.hitpoints = fgetc(file);
     read_map_objects (&world.monster, file, sizeof(struct Monster), read_map_objects_monsterdata);
-    read_map_objects (&world.item,    file, sizeof(struct Item),    readwrite_map_objects_dummy);
+    read_map_objects (&world.item,    file, sizeof(struct Item),    NULL);
     fclose(file); }
 
   // For non-interactive mode, try to load world state from record file.
@@ -171,4 +171,4 @@ int main (int argc, char *argv[]) {
   free(world.keyswindata);
   free(world.log);
   endwin();
-  return 0; }
+  exit (EXIT_SUCCESS); }