From ee77a99dc53d22ce293a71d0129cd057210b1916 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Sun, 17 Jul 2022 20:31:10 +0700 Subject: [PATCH] Change to adapt to AcediaCore's iterator changes --- sources/Commands/ACommandSpawn.uc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/Commands/ACommandSpawn.uc b/sources/Commands/ACommandSpawn.uc index c542151..ef0ebb3 100644 --- a/sources/Commands/ACommandSpawn.uc +++ b/sources/Commands/ACommandSpawn.uc @@ -100,8 +100,8 @@ private final function SpawnInInstigatorSight( local Vector spawnLocation; local TracingIterator iter; - iter = _server.kf.world.TracePlayerSight(instigator).LeaveOnlyVisible(); - if (iter.HasFinished()) + iter = _server.kf.world.TracePlayerSight(instigator); + if (iter.LeaveOnlyVisible().HasFinished()) { announcer.AnnounceFailedTrace(); return;