Prevent segfault in CMiniMap::Tick

Oversight in 01476b9836
For example, it could cause a segfault when rendering a frame after
EndGame was called therefore g_Game already deleted.
This commit is contained in:
Vantha
2026-05-04 11:54:22 +02:00
committed by Vantha
parent adfe6b0c36
commit 0e6e0280fc
+3
View File
@@ -121,6 +121,9 @@ CMiniMap::CMiniMap(CGUI& pGUI) :
void CMiniMap::Tick()
{
if (!g_Game || !g_Game->GetView() || !g_Game->IsGameStarted())
return;
g_Game->GetView()->GetMiniMapTexture().RequestRendering();
}