diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:15 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:15 +0200 |
commit | 05cdb1a997cba7748f0089cffa0a5885ca0b2c43 (patch) | |
tree | e3b0b3bb636e1e099eafe784eaeffdb147348b81 /src/wizard2.cc | |
parent | 5eec61dd05577623c1d5b9eed3a22d1352dcd990 (diff) |
Move wilderness structure into Game
Diffstat (limited to 'src/wizard2.cc')
-rw-r--r-- | src/wizard2.cc | 3 |
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++) |