summaryrefslogtreecommitdiff
path: root/src/wizard2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:15 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:15 +0200
commit05cdb1a997cba7748f0089cffa0a5885ca0b2c43 (patch)
treee3b0b3bb636e1e099eafe784eaeffdb147348b81 /src/wizard2.cc
parent5eec61dd05577623c1d5b9eed3a22d1352dcd990 (diff)
Move wilderness structure into Game
Diffstat (limited to 'src/wizard2.cc')
-rw-r--r--src/wizard2.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wizard2.cc b/src/wizard2.cc
index 786ca796..359d5c5a 100644
--- a/src/wizard2.cc
+++ b/src/wizard2.cc
@@ -15,6 +15,7 @@
#include "corrupt.hpp"
#include "dungeon_info_type.hpp"
#include "files.hpp"
+#include "game.hpp"
#include "hooks.hpp"
#include "monster2.hpp"
#include "monster_race.hpp"
@@ -86,7 +87,7 @@ static void teleport_player_town(int town)
dun_level = 0;
p_ptr->town_num = town;
- auto const &wilderness = *wilderness_ptr;
+ auto const &wilderness = game->wilderness;
for (std::size_t y = 0; y < wilderness.height(); y++)
{
for (std::size_t x = 0; x < wilderness.width(); x++)