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 Christoph Oelckers
parent 747b3dfcfe
commit f9a41cf11e

View file

@ -1763,7 +1763,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);