- fixed crash when drawing status bar on automap

https://forum.zdoom.org/viewtopic.php?t=70480
This commit is contained in:
alexey.lysiuk 2020-11-01 10:39:52 +02:00
parent ecf0701481
commit 18bf807ab3

View file

@ -627,7 +627,7 @@ void DBaseStatusBar::DoDrawAutomapHUD(int crdefault, int highlight)
double x = 0, yy = 0, w = HorizontalResolution, h = 0;
StatusbarToRealCoords(x, yy, w, h);
IFVIRTUAL(DBaseStatusBar, GetProtrusion)
IFVIRTUAL(DStatusBarCore, GetProtrusion)
{
int prot = 0;
VMValue params[] = { this, double(finalwidth * scale / w) };