mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-29 15:32:54 +00:00
The wrong pointer was passed to ProcessMidPrint, which resulted in a crash.
This commit is contained in:
parent
747b3dfcfe
commit
f9a41cf11e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue