aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut4
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut
index 39fdce22..4ebbcf61 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut
@@ -1146,7 +1146,7 @@ void function waitUntilLessThanAmountAlive(int amount)
int deduct = 0
foreach (entity npc in spawnedNPCs)
{
- if( !IsValid )
+ if( !IsValid(npc) )
{
deduct++
continue
@@ -1169,7 +1169,7 @@ void function waitUntilLessThanAmountAlive(int amount)
deduct = 0
foreach (entity npc in spawnedNPCs)
{
- if( !IsValid )
+ if( !IsValid(npc) )
{
deduct++
continue