summaryrefslogtreecommitdiff
path: root/src/waypoint_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-09 02:33:10 +0000
committerrubidium <rubidium@openttd.org>2009-02-09 02:33:10 +0000
commit90e2465d7d2c770707feeaebfebbe56bd76383f1 (patch)
treeaa639d9f07d77989dca1ce7b2cf1a57a95a43c69 /src/waypoint_gui.cpp
parent030f52e998b176087de5ad5f6b5c47a7e348bf16 (diff)
downloadopenttd-90e2465d7d2c770707feeaebfebbe56bd76383f1.tar.xz
(svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window
Diffstat (limited to 'src/waypoint_gui.cpp')
-rw-r--r--src/waypoint_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint_gui.cpp b/src/waypoint_gui.cpp
index 576d614aa..f9cb86a00 100644
--- a/src/waypoint_gui.cpp
+++ b/src/waypoint_gui.cpp
@@ -36,7 +36,7 @@ public:
WaypointWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number)
{
this->wp = GetWaypoint(this->window_number);
- this->caption_color = this->wp->owner;
+ this->owner = this->wp->owner;
this->flags4 |= WF_DISABLE_VP_SCROLL;
InitializeWindowViewport(this, 3, 17, 254, 86, this->wp->xy, ZOOM_LVL_MIN);