]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Get rid of a warning
authorterencehill <piuntn@gmail.com>
Sat, 3 Apr 2021 21:12:07 +0000 (23:12 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 3 Apr 2021 21:12:07 +0000 (23:12 +0200)
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);
        }