From 7792a435d79a30cb40f6088a43181ed70729b28d Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Tue, 20 Aug 2019 17:16:50 +0200 Subject: [PATCH] The wrong pointer was passed to ProcessMidPrint, which resulted in a crash. --- src/c_console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c_console.cpp b/src/c_console.cpp index 4ee782f96..cbecd23fc 100644 --- a/src/c_console.cpp +++ b/src/c_console.cpp @@ -1880,7 +1880,7 @@ void C_MidPrint (FFont *font, const char *msg, bool bold) IFVIRTUALPTR(StatusBar, DBaseStatusBar, ProcessMidPrint) { FString msgstr = msg; - VMValue params[] = { (DObject*)StatusBar, font, &msg, bold }; + VMValue params[] = { (DObject*)StatusBar, font, &msgstr, bold }; int rv; VMReturn ret(&rv); VMCall(func, params, countof(params), &ret, 1);