summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
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: