The wrong pointer was passed to ProcessMidPrint, which resulted in a crash.

This commit is contained in:
Marisa Kirisame 2019-08-20 17:16:50 +02:00 committed by drfrag
parent d299576eb0
commit 7792a435d7

View file

@ -1880,7 +1880,7 @@ void C_MidPrint (FFont *font, const char *msg, bool bold)
IFVIRTUALPTR(StatusBar, DBaseStatusBar, ProcessMidPrint) IFVIRTUALPTR(StatusBar, DBaseStatusBar, ProcessMidPrint)
{ {
FString msgstr = msg; FString msgstr = msg;
VMValue params[] = { (DObject*)StatusBar, font, &msg, bold }; VMValue params[] = { (DObject*)StatusBar, font, &msgstr, bold };
int rv; int rv;
VMReturn ret(&rv); VMReturn ret(&rv);
VMCall(func, params, countof(params), &ret, 1); VMCall(func, params, countof(params), &ret, 1);