mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-06 03:09:05 +01:00
(svn r580) Fix latent bug in BringWindowToFrontByID() - a wrong pointer was returned
This commit is contained in:
parent
37cbae0370
commit
a9a852a4d6
2
window.c
2
window.c
@ -244,7 +244,7 @@ Window *BringWindowToFrontById(WindowClass cls, WindowNumber number)
|
|||||||
if (w != NULL) {
|
if (w != NULL) {
|
||||||
w->flags4 |= WF_WHITE_BORDER_MASK;
|
w->flags4 |= WF_WHITE_BORDER_MASK;
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
BringWindowToFront(w);
|
w = BringWindowToFront(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
return w;
|
return w;
|
||||||
|
Loading…
Reference in New Issue
Block a user