Forgot to initialise new habitat->monflags flagpile.

This commit is contained in:
Rob Pearce 2016-07-23 11:37:44 +10:00
parent e5dfd28216
commit 5a54c41028
1 changed files with 1 additions and 0 deletions

1
map.c
View File

@ -132,6 +132,7 @@ habitat_t *addhabitat(enum HABITAT id, char *name, enum CELLTYPE emptycell, enum
a->downstairtype = downstairtype; a->downstairtype = downstairtype;
a->stairsinrooms = stairsinrooms; a->stairsinrooms = stairsinrooms;
a->temperature = getmidtemp(temp); a->temperature = getmidtemp(temp);
a->monflags = addflagpile(NULL, NULL);
return a; return a;
} }