summaryrefslogtreecommitdiff
path: root/plugins/zone.cpp
diff options
context:
space:
mode:
authorRobert Heinrich2012-04-14 13:36:22 +0200
committerRobert Heinrich2012-04-14 13:36:22 +0200
commit2100a95ad546ad0d4c85483e96357924c05c8b51 (patch)
treef584e6075dedb426913393c95cccd06a31febc4d /plugins/zone.cpp
parentfba83bb5970e61e5c25158e10700cd8a529786cf (diff)
downloaddfhack-2100a95ad546ad0d4c85483e96357924c05c8b51.tar.gz
dfhack-2100a95ad546ad0d4c85483e96357924c05c8b51.tar.bz2
dfhack-2100a95ad546ad0d4c85483e96357924c05c8b51.tar.xz
zone: fixed major derp (assign commands would accidentally free caged creatures). tweak: added cheat to kidnap caravan escorts (works fine even for other races, does NOT work for traders because they can't be assigned any labors for whatever reason)
Diffstat (limited to 'plugins/zone.cpp')
-rw-r--r--plugins/zone.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/zone.cpp b/plugins/zone.cpp
index c668abe9..1e90aa1c 100644
--- a/plugins/zone.cpp
+++ b/plugins/zone.cpp
@@ -963,7 +963,6 @@ bool isInBuiltCage(df::unit* unit)
{
if(oldcage->assigned_creature[oc] == unit->id)
{
- oldcage->assigned_creature.erase(oldcage->assigned_creature.begin() + oc);
caged = true;
break;
}