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/spells3.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/spells3.cc')
-rw-r--r-- | src/spells3.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spells3.cc b/src/spells3.cc index 8be13b9d..e209feb1 100644 --- a/src/spells3.cc +++ b/src/spells3.cc @@ -503,7 +503,7 @@ casting_result convey_recall() swap_position(y, x); return CAST_OBVIOUS; } - else if (c_ptr->o_idx > 0) + else if (!c_ptr->o_idxs.empty()) { // Set the target target_who = -1; |