Forgot to initialise new habitat->monflags flagpile.
This commit is contained in:
parent
e5dfd28216
commit
5a54c41028
1
map.c
1
map.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue