diff options
author | rubidium <rubidium@openttd.org> | 2008-05-08 11:50:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-08 11:50:34 +0000 |
commit | 23fc96c3e8c252edbf2e7c22cefab633a0474410 (patch) | |
tree | 23ad171b2093a5c5980b9d912bf60056102af9fa /src/station_gui.cpp | |
parent | 2eef026fe35b9236606062f7d8a59d5661a5c748 (diff) | |
download | openttd-23fc96c3e8c252edbf2e7c22cefab633a0474410.tar.xz |
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 376a234d5..578fcc832 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -620,7 +620,7 @@ void ShowPlayerStations(PlayerID player) { if (!IsValidPlayer(player)) return; - Window *w = AllocateWindowDescFront(&_player_stations_desc, player); + Window *w = AllocateWindowDescFront<Window>(&_player_stations_desc, player); if (w == NULL) return; w->caption_color = (byte)w->window_number; @@ -1043,7 +1043,7 @@ static const WindowDesc _station_view_desc = { */ void ShowStationViewWindow(StationID station) { - Window *w = AllocateWindowDescFront(&_station_view_desc, station); + Window *w = AllocateWindowDescFront<Window>(&_station_view_desc, station); if (w == NULL) return; PlayerID owner = GetStation(w->window_number)->owner; |