From 81eaa1110b9721b7e7167dcb49bd1077d7b3f016 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 14 Aug 2013 03:11:36 +0200 Subject: [PATCH] Reference map only through world struct. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index f7007b7..7096f6c 100644 --- a/src/main.c +++ b/src/main.c @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) set_cleanup_flag(CLEANUP_MAP); if (1 == world.turn) { - player.pos = find_passable_pos(&map); + player.pos = find_passable_pos(world.map); void * foo; foo = build_map_objects(&world, &world.monster, 1, 1 + rrand() % 27); foo = build_map_objects(&world, foo, 2, 1 + rrand() % 9); -- 2.30.2