summaryrefslogtreecommitdiff
path: root/plugins/cleanowned.cpp
diff options
context:
space:
mode:
authorQuietust2012-01-21 13:03:39 -0600
committerQuietust2012-01-21 13:03:39 -0600
commit8052305c2ec746294b707540409dafb6c09529d9 (patch)
treea49c147e02cf8fc23fb63db5caf6ca5708902584 /plugins/cleanowned.cpp
parent118e5c6617d1246c3d15739427f0f45143313dfa (diff)
downloaddfhack-8052305c2ec746294b707540409dafb6c09529d9.tar.gz
dfhack-8052305c2ec746294b707540409dafb6c09529d9.tar.bz2
dfhack-8052305c2ec746294b707540409dafb6c09529d9.tar.xz
Cleanup the Units module
Diffstat (limited to 'plugins/cleanowned.cpp')
-rw-r--r--plugins/cleanowned.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/cleanowned.cpp b/plugins/cleanowned.cpp
index 888c92dc..e4c5fab8 100644
--- a/plugins/cleanowned.cpp
+++ b/plugins/cleanowned.cpp
@@ -188,12 +188,12 @@ DFhackCExport command_result df_cleanowned (Core * c, vector <string> & paramete
if (owner_index >= 0)
{
- DFHack::df_unit * temp = Creatures->GetCreature(owner_index);
+ df::unit * temp = Creatures->GetCreature(owner_index);
info = temp->name.first_name;
- if (!temp->name.nick_name.empty())
- info += std::string(" '") + temp->name.nick_name + "'";
+ if (!temp->name.nickname.empty())
+ info += std::string(" '") + temp->name.nickname + "'";
info += " ";
- info += Tran->TranslateName(&temp->name,false);
+ info += Tran->TranslateName((df_name *)&temp->name,false);
c->con.print(", owner %s", info.c_str());
}