forked from mirror/OpenTTD
(svn r580) Fix latent bug in BringWindowToFrontByID() - a wrong pointer was returned
This commit is contained in:
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;
|
||||||
|
Reference in New Issue
Block a user