]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/electro.qc
Get rid of a warning
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / electro.qc
index 589cf9c773521d534c147d7a33104750945ff5bb..274cf4ff21dc40af937fe149e45fdc2826e1f455 100644 (file)
@@ -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);
        }