summaryrefslogtreecommitdiff
path: root/src/q_wight.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/q_wight.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/q_wight.cc')
-rw-r--r--src/q_wight.cc4
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);
}
}
}