home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
While adding cleaning up / freeing of map objects, fixed bug that initialized map...
[plomrogue]
/
src
/
rexit.c
diff --git
a/src/rexit.c
b/src/rexit.c
index e0d029f124b1d6218c2dde85e8b3167cd371aa12..2907705af45948398966b77b2cf141bea3ef676c 100644
(file)
--- a/
src/rexit.c
+++ b/
src/rexit.c
@@
-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);
+ }
}