summaryrefslogtreecommitdiff
path: root/src/player_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-12-07 18:05:49 +0000
committerglx <glx@openttd.org>2007-12-07 18:05:49 +0000
commitb00f62123960a9beaf85da92df2537b24d5c0295 (patch)
treed911871e265f9cc64abdaac46967f9c90de70315 /src/player_gui.cpp
parent30a5f9abf3c004d381cde4248040c7698686c827 (diff)
downloadopenttd-b00f62123960a9beaf85da92df2537b24d5c0295.tar.xz
(svn r11588) -Codechange: use the new member introduced in r11551
Diffstat (limited to 'src/player_gui.cpp')
-rw-r--r--src/player_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player_gui.cpp b/src/player_gui.cpp
index 33bc61abf..16d5ff3f3 100644
--- a/src/player_gui.cpp
+++ b/src/player_gui.cpp
@@ -1179,7 +1179,7 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e)
SetObjectToPlaceWnd(SPR_CURSOR_HQ, PAL_NONE, VHM_RECT, w);
SetTileSelectSize(2, 2);
w->LowerWidget(PCW_WIDGET_BUILD_VIEW_HQ);
- InvalidateWidget(w, PCW_WIDGET_BUILD_VIEW_HQ);
+ w->InvalidateWidget(PCW_WIDGET_BUILD_VIEW_HQ);
} else {
ScrollMainWindowToTile(tile);
}
@@ -1190,7 +1190,7 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e)
SetObjectToPlaceWnd(SPR_CURSOR_HQ, PAL_NONE, VHM_RECT, w);
SetTileSelectSize(2, 2);
w->LowerWidget(PCW_WIDGET_RELOCATE_HQ);
- InvalidateWidget(w, PCW_WIDGET_RELOCATE_HQ);
+ w->InvalidateWidget(PCW_WIDGET_RELOCATE_HQ);
break;
case PCW_WIDGET_BUY_SHARE: