summaryrefslogtreecommitdiff
path: root/src/init2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-06-12 06:27:05 +0200
committerBardur Arantsson <bardur@scientician.net>2015-08-01 17:26:10 +0200
commitc6196b25d119a10e79deedef26a73e0d5a021b0e (patch)
tree199f5bff5cf363787eb610caa495fd3682a463ed /src/init2.cc
parent000f6272f8ab1d43ec6300fb5972f7813ada1c88 (diff)
Refactor cave_type and monster_type to use non-intrusive lists
We use vectors of object indexes instead of embedding the list within object_type itself.
Diffstat (limited to 'src/init2.cc')
-rw-r--r--src/init2.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/init2.cc b/src/init2.cc
index e9508684..f80b832a 100644
--- a/src/init2.cc
+++ b/src/init2.cc
@@ -828,10 +828,10 @@ static errr init_other(void)
o_list = make_array<object_type>(max_o_idx);
/* Allocate and Wipe the monster list */
- m_list = make_array<monster_type>(max_m_idx);
+ m_list = new monster_type[max_m_idx];
/* Allocate and Wipe the to keep monster list */
- km_list = make_array<monster_type>(max_m_idx);
+ km_list = new monster_type[max_m_idx];
/* Allocate and Wipe the max dungeon level */
max_dlv = make_array<s16b>(max_d_idx);
@@ -843,11 +843,11 @@ static errr init_other(void)
}
/* Allocate and wipe each line of the cave */
- cave = make_array<cave_type *>(MAX_HGT);
+ cave = new cave_type *[MAX_HGT];
for (i = 0; i < MAX_HGT; i++)
{
/* Allocate one row of the cave */
- cave[i] = make_array<cave_type>(MAX_WID);
+ cave[i] = new cave_type[MAX_WID];
}
/*** Pre-allocate the basic "auto-inscriptions" ***/