diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-06-12 06:27:05 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-08-01 17:26:10 +0200 |
commit | c6196b25d119a10e79deedef26a73e0d5a021b0e (patch) | |
tree | 199f5bff5cf363787eb610caa495fd3682a463ed /src/q_wight.cc | |
parent | 000f6272f8ab1d43ec6300fb5972f7813ada1c88 (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/q_wight.cc')
-rw-r--r-- | src/q_wight.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/q_wight.cc b/src/q_wight.cc index d0405920..499535ca 100644 --- a/src/q_wight.cc +++ b/src/q_wight.cc @@ -107,13 +107,11 @@ static bool_ quest_wight_gen_hook(void *, void *, void *) object_copy(o_ptr, q_ptr); /* Build a stack */ - o_ptr->next_o_idx = m_list[m_idx].hold_o_idx; - o_ptr->held_m_idx = m_idx; o_ptr->ix = 0; o_ptr->iy = 0; - m_list[m_idx].hold_o_idx = o_idx; + m_list[m_idx].hold_o_idxs.push_back(o_idx); } } } |