From 7e12b5ff0f531a62197c6d5f53896270261c60ae Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 22 May 2024 18:06:34 +0100 Subject: [PATCH] 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. --- src/window.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window.cpp b/src/window.cpp index 142ba017e8..6a5a2eee34 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -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 */