aboutsummaryrefslogtreecommitdiff
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index 222155d..b3bb4b3 100644
--- a/src/world.c
+++ b/src/world.c
@@ -248,6 +248,7 @@ bool world_load(const char *fname, const struct roomdata_t *data, size_t data_sz
/* read in the room name -> room map */
world_map = hash_init(world_sz * 2, hash_djb, compare_strings);
+ hash_setfreekey_cb(world_map, free);
for(unsigned int i = 0; i < world_sz; ++i)
{