Missed a null check.

This commit is contained in:
Mari the Deer 2023-12-19 16:39:35 +01:00
commit 230d7192c3
3 changed files with 4 additions and 3 deletions

View file

@ -99,7 +99,7 @@ Class SWWMStaticHandler : StaticEventHandler
SWWMHandler.ClearAllShaders();
EventHandler.SendInterfaceEvent(consoleplayer,"swwmflushhud");
EventHandler.SendInterfaceEvent(consoleplayer,"swwmaprcheck");
// quick fix for old savegames
// quick fix for old savegames (to be removed in 1.3 release)
let hnd = SWWMHandler(EventHandler.Find("SWWMHandler"));
if ( hnd && (hnd.sbounds.Size() <= 0) )
hnd.PrecalculateSectorBounds();