- null checks in SW.

This commit is contained in:
Christoph Oelckers 2020-01-21 22:03:04 +01:00
parent 493525a58e
commit 27cc865af7
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ void UpdateMiniBar(PLAYERp pp)
#define MINI_BAR_INVENTORY_BOX_X 64
#define MINI_BAR_INVENTORY_BOX_Y MINI_BAR_Y
if (!PanelUpdateMode)
if (!PanelUpdateMode || !u)
return;
if (gs.BorderNum != BORDER_MINI_BAR)

View file

@ -2988,7 +2988,7 @@ DoAutoTurretObject(SECTOR_OBJECTp sop)
int dist;
short i;
if (sop->max_damage != -9999 && sop->max_damage <= 0)
if ((sop->max_damage != -9999 && sop->max_damage <= 0) || !u)
return;