home · contact · privacy
Replaced dummy function by just passing NULL and checking for it.
[plomrogue] / src / main.c
index b65108b7b4ec4ae3b3a2c93e52a3490ab8fa068f..a720191eeeba8106485e6d77a6f9866fcab97a9e 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.