1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-18 09:52:44 +01:00

(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.

This commit is contained in:
rubidium
2008-05-06 22:08:18 +00:00
parent e6c944a6c4
commit 9bf519f26b
34 changed files with 241 additions and 246 deletions

View File

@@ -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;
}