mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
Fix: Crash if interface scale or font size changes with chat box present. (#12705)
Caused by the chat box being undrawn with the new dimensions, leading to out-of-bounding memory access.
This commit is contained in:
parent
42fc32243d
commit
7e12b5ff0f
@ -3330,6 +3330,7 @@ void ReInitAllWindows(bool zoom_changed)
|
||||
ReInitWindow(w, zoom_changed);
|
||||
}
|
||||
|
||||
if (_networking) NetworkUndrawChatMessage();
|
||||
NetworkReInitChatBoxSize();
|
||||
|
||||
/* Make sure essential parts of all windows are visible */
|
||||
|
Loading…
Reference in New Issue
Block a user