From: terencehill Date: Sat, 3 Apr 2021 21:12:07 +0000 (+0200) Subject: Get rid of a warning X-Git-Tag: xonotic-v0.8.5~472 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=97334c45ab093930842bd0c33ab8cbf46823eec6;p=xonotic%2Fxonotic-data.pk3dir.git Get rid of a warning --- 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); }