summaryrefslogtreecommitdiff
path: root/library/RemoteTools.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 /library/RemoteTools.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 'library/RemoteTools.cpp')
-rw-r--r--library/RemoteTools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/RemoteTools.cpp b/library/RemoteTools.cpp
index 5e11e062..b72c0c91 100644
--- a/library/RemoteTools.cpp
+++ b/library/RemoteTools.cpp
@@ -402,7 +402,7 @@ static command_result GetWorldInfo(color_ostream &stream,
case GAMETYPE_ADVENTURE_MAIN:
out->set_mode(GetWorldInfoOut::MODE_ADVENTURE);
- if (auto unit = vector_get(world->units.other[0], 0))
+ if (auto unit = vector_get(world->units.active, 0))
out->set_player_unit_id(unit->id);
if (!ui_advmode)