summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorjj2012-09-26 18:13:01 +0200
committerjj2012-09-26 18:22:07 +0200
commit7cc29250f8622a317da464a2b7356a246082abc0 (patch)
tree906bb059d21f1e35533f398e25af041d481cfb11 /library
parentd975ce513509d12c1f69752270ce65de4f80d7aa (diff)
downloaddfhack-7cc29250f8622a317da464a2b7356a246082abc0.tar.gz
dfhack-7cc29250f8622a317da464a2b7356a246082abc0.tar.bz2
dfhack-7cc29250f8622a317da464a2b7356a246082abc0.tar.xz
fix for updated viewlist_petst
Diffstat (limited to 'library')
-rw-r--r--library/modules/Gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/modules/Gui.cpp b/library/modules/Gui.cpp
index eaeef9bf..21156ac0 100644
--- a/library/modules/Gui.cpp
+++ b/library/modules/Gui.cpp
@@ -766,7 +766,7 @@ static df::unit *getAnyUnit(df::viewscreen *top)
{
case df::viewscreen_petst::List:
if (!vector_get(screen->is_vermin, screen->cursor))
- return (df::unit*)vector_get(screen->animal, screen->cursor);
+ return vector_get(screen->animal, screen->cursor).unit;
return NULL;
case df::viewscreen_petst::SelectTrainer: