home · contact · privacy
While adding cleaning up / freeing of map objects, fixed bug that initialized map...
[plomrogue] / src / rexit.c
index e0d029f124b1d6218c2dde85e8b3167cd371aa12..2907705af45948398966b77b2cf141bea3ef676c 100644 (file)
@@ -70,6 +70,11 @@ static void cleanup(struct World * world)
         free_item_defs(world->item_def);
         free_monster_defs(world->monster_def);
     }
+    if (cleanup_flags & CLEANUP_MAP_OBJECTS)
+    {
+        free_items(world->item);
+        free_monsters(world->monster);
+    }
 }