From 7cc29250f8622a317da464a2b7356a246082abc0 Mon Sep 17 00:00:00 2001 From: jj Date: Wed, 26 Sep 2012 18:13:01 +0200 Subject: fix for updated viewlist_petst --- library/modules/Gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library') 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: -- cgit v1.2.1