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/settings.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/settings.cpp')
-rw-r--r-- | src/settings.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 2c800e96d..a9e2ac1fb 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1211,9 +1211,7 @@ static int32 RealisticAccelerationChanged(int32 p1) static int32 DragSignalsDensityChanged(int32) { - const Window *w = FindWindowById(WC_BUILD_SIGNAL, 0); - - if (w != NULL) SetWindowDirty(w); + SetWindowDirty(FindWindowById(WC_BUILD_SIGNAL, 0)); return 0; } |