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/help.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/help.cc')
-rw-r--r-- | src/help.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/help.cc b/src/help.cc index 9b607b66..29ebf033 100644 --- a/src/help.cc +++ b/src/help.cc @@ -325,7 +325,7 @@ static bool_ trigger_fountain(void *in, void *out) { static bool_ trigger_found_object(void *in, void *out) { hook_move_in *p = (hook_move_in *) in; - return cave[p->y][p->x].o_idx != 0; + return !cave[p->y][p->x].o_idxs.empty(); } static bool_ trigger_found_altar(void *in, void *out) { |