summaryrefslogtreecommitdiffstats
path: root/level.c
diff options
context:
space:
mode:
Diffstat (limited to 'level.c')
-rw-r--r--level.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/level.c b/level.c
index 7c6aaa9..e78dfb7 100644
--- a/level.c
+++ b/level.c
@@ -13,7 +13,7 @@ void setLevel(LEVEL *l) {
level = l;
}
-void addRoom(LEVEL *lvl, ROOM *room) {
+void addRoom(LEVEL *lvl, const ROOM *room) {
lvl->nRooms++;
lvl->rooms = realloc(lvl->rooms, lvl->nRooms*sizeof(ROOM));
lvl->rooms[lvl->nRooms-1] = *room;