simplify the assault fix
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / assault.qc
index c4fe3874780886834ba6e7744e7aa5bc3501f7a4..d7ea87d33211d9799b9fbef9ed45bf1139676a15 100644 (file)
@@ -70,7 +70,7 @@ void assault_objective_decrease_use() {
                return;
        }
 
-       if(other.assault_sprite.classname == "sprite_waypoint")
+       if(other.assault_sprite)
                WaypointSprite_Disown(other.assault_sprite, waypointsprite_deadlifetime);
        else
                return; // already activated! cannot activate again!