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.

(cherry picked from commit 7e12b5ff0f)
This commit is contained in:
Peter Nelson 2024-05-22 18:06:34 +01:00 committed by Jonathan G Rennison
parent 06b84f7c00
commit a6a72c68d1

View File

@ -3622,6 +3622,7 @@ void ReInitAllWindows(bool zoom_changed)
ReInitWindow(w, zoom_changed);
}
if (_networking) NetworkUndrawChatMessage();
NetworkReInitChatBoxSize();
/* Make sure essential parts of all windows are visible */