src/station_gui.cpp
changeset 7058 8105bb13ce3d
parent 7010 6f0d9f03180d
child 7341 02515d0d4ced
--- a/src/station_gui.cpp	Mon Jun 25 10:49:31 2007 +0000
+++ b/src/station_gui.cpp	Mon Jun 25 13:30:38 2007 +0000
@@ -309,10 +309,8 @@
 			SetVScrollCount(w, sl->list_length);
 
 			/* draw widgets, with player's name in the caption */
-			const Player* p = GetPlayer(owner);
-			SetDParam(0, p->name_1);
-			SetDParam(1, p->name_2);
-			SetDParam(2, w->vscroll.count);
+			SetDParam(0, owner);
+			SetDParam(1, w->vscroll.count);
 			DrawWindowWidgets(w);
 
 			/* draw sorting criteria string */