From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 14 Aug 2013 01:11:36 +0000 (+0200)
Subject: Reference map only through world struct.
X-Git-Tag: tce~1099
X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/condition?a=commitdiff_plain;h=81eaa1110b9721b7e7167dcb49bd1077d7b3f016;p=plomrogue

Reference map only through world struct.
---

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);