From 97334c45ab093930842bd0c33ab8cbf46823eec6 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 3 Apr 2021 23:12:07 +0200 Subject: [PATCH] Get rid of a warning --- qcsrc/common/weapons/weapon/electro.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/weapon/electro.qc b/qcsrc/common/weapons/weapon/electro.qc index 589cf9c77..274cf4ff2 100644 --- a/qcsrc/common/weapons/weapon/electro.qc +++ b/qcsrc/common/weapons/weapon/electro.qc @@ -297,7 +297,7 @@ void W_Electro_Orb_Stick(entity this, entity to) IL_PUSH(g_bot_dodge, newproj); // check if limits are enabled (we can tell by checking if the original orb is listed) and push it to the list if so - if(IL_CONTAINS(LimitedElectroBallRubbleList, this)) + if(LimitedElectroBallRubbleList && IL_CONTAINS(LimitedElectroBallRubbleList, this)) { ReplaceOldListedChildRubble(LimitedElectroBallRubbleList, newproj, this); } -- 2.39.2