aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes
diff options
context:
space:
mode:
authorRoyalBlue1 <malte.hoermeyer@web.de>2022-07-17 04:51:00 +0200
committerRoyalBlue1 <malte.hoermeyer@web.de>2022-07-17 04:51:00 +0200
commit78a92fdae360f610302a9766e381a0fd8a3e661a (patch)
tree1418b9a3a041ab5d09538a7f961c4507bf84b37b /Northstar.CustomServers/mod/scripts/vscripts/gamemodes
parentd0f226b23eae12e3b27199db673d45f37708d5fc (diff)
downloadNorthstarMods-78a92fdae360f610302a9766e381a0fd8a3e661a.tar.gz
NorthstarMods-78a92fdae360f610302a9766e381a0fd8a3e661a.zip
Fix d0f226b23eae12e3b27199db673d45f37708d5fc
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes')
-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