mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 07:57:52 +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)
|
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);
|
||||||
|
|
Loading…
Reference in a new issue