mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
The wrong pointer was passed to ProcessMidPrint, which resulted in a crash.
This commit is contained in:
parent
d299576eb0
commit
7792a435d7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue