From 5a54c410280b509d32d48ef5e20111e14f4bbe3f Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Sat, 23 Jul 2016 11:37:44 +1000 Subject: [PATCH] Forgot to initialise new habitat->monflags flagpile. --- map.c | 1 + 1 file changed, 1 insertion(+) diff --git a/map.c b/map.c index 8a35dc5..a73ae47 100644 --- a/map.c +++ b/map.c @@ -132,6 +132,7 @@ habitat_t *addhabitat(enum HABITAT id, char *name, enum CELLTYPE emptycell, enum a->downstairtype = downstairtype; a->stairsinrooms = stairsinrooms; a->temperature = getmidtemp(temp); + a->monflags = addflagpile(NULL, NULL); return a; }