summaryrefslogtreecommitdiff
path: root/plugins/advtools.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-04-21 12:46:55 +0400
committerAlexander Gavrilov2012-04-21 12:46:55 +0400
commitadbd351462f71db6a98b681eb9336524cc530092 (patch)
tree774f2a4206ea487acfb1af183f9d49b8e5730dfd /plugins/advtools.cpp
parent0a6982f4041f43d571bd2690f148ff369f2d8038 (diff)
downloaddfhack-adbd351462f71db6a98b681eb9336524cc530092.tar.gz
dfhack-adbd351462f71db6a98b681eb9336524cc530092.tar.bz2
dfhack-adbd351462f71db6a98b681eb9336524cc530092.tar.xz
Rename units.other[0] to units.active.
Diffstat (limited to 'plugins/advtools.cpp')
-rw-r--r--plugins/advtools.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/advtools.cpp b/plugins/advtools.cpp
index 69841849..4823d362 100644
--- a/plugins/advtools.cpp
+++ b/plugins/advtools.cpp
@@ -169,7 +169,7 @@ bool bodySwap(color_ostream &out, df::unit *player)
return false;
}
- auto &vec = world->units.other[0];
+ auto &vec = world->units.active;
int idx = linear_index(vec, player);
if (idx < 0)
@@ -195,7 +195,7 @@ df::nemesis_record *getPlayerNemesis(color_ostream &out, bool restore_swap)
if (restore_swap)
{
- df::unit *ctl = world->units.other[0][0];
+ df::unit *ctl = world->units.active[0];
auto ctl_nemesis = Units::getNemesis(ctl);
if (ctl_nemesis != real_nemesis)