diff options
author | rubidium <rubidium@openttd.org> | 2008-05-06 22:08:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-06 22:08:18 +0000 |
commit | 9bf519f26bc9b3e174803c8ebfd2427bf7c5fb61 (patch) | |
tree | 6760a7b433eda594e11470ba7695e8c399fadbfd /src/order_gui.cpp | |
parent | e6c944a6c4507ec00948391d1b0bdf300bbd879e (diff) | |
download | openttd-9bf519f26bc9b3e174803c8ebfd2427bf7c5fb61.tar.xz |
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index e85c14229..0df7079c0 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -799,7 +799,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) /* This was a click on an empty part of the orders window, so * deselect the currently selected order. */ WP(w, order_d).sel = -1; - SetWindowDirty(w); + w->SetDirty(); return; } @@ -831,7 +831,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) } } - SetWindowDirty(w); + w->SetDirty(); } break; case ORDER_WIDGET_SKIP: |