mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- null checks in SW.
This commit is contained in:
parent
493525a58e
commit
27cc865af7
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue