1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 00:49:11 +00:00

Fix: Crash if interface scale or font size changes with chat box present.

Caused by the chat box being undrawn with the new dimensions, leading to out-of-bounding memory access.
This commit is contained in:
2024-05-20 21:52:23 +01:00
parent 28e814f62a
commit 5eaeea1e49

View File

@@ -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 */