diff options
Diffstat (limited to 'src/init2.cc')
-rw-r--r-- | src/init2.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/init2.cc b/src/init2.cc index 77866648..fa07bb02 100644 --- a/src/init2.cc +++ b/src/init2.cc @@ -723,15 +723,6 @@ void create_stores_stock(int t) */ static errr init_wilderness(void) { - /* Allocate the wilderness (two-dimension array) */ - wild_map = make_array<wilderness_map *>(max_wild_y); - - /* Init the other pointers */ - for (std::size_t i = 0; i < max_wild_y; i++) - { - wild_map[i] = new wilderness_map[max_wild_x]; - } - /* No encounter right now */ generate_encounter = FALSE; @@ -1266,6 +1257,9 @@ void init_angband(void) (void)fd_close(fd); + /* Allocate the wilderness */ + wilderness_ptr = new grid<wilderness_map>(); + /*** Initialise some arrays ***/ /* Initialise misc. values */ |