aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2024-08-30 14:52:21 +0200
committerGitHub <noreply@github.com>2024-08-30 14:52:21 +0200
commit6cd957e93f8eccf42d7cb08afc19fd4650ee0efd (patch)
tree9f2edc6374847398ceb69371c7eadd8ce3f048c0 /Northstar.CustomServers/mod/scripts/vscripts/gamemodes
parent83afd8cb140001d415b6a8efc27995559485b1f7 (diff)
downloadNorthstarMods-6cd957e93f8eccf42d7cb08afc19fd4650ee0efd.tar.gz
NorthstarMods-6cd957e93f8eccf42d7cb08afc19fd4650ee0efd.zip
Add missing valid check for militia flag spawn (#853)
Co-authored-by: Zanieon <william-millennium@hotmail.com>
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut4
1 files changed, 3 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut
index 97addc24..6033940b 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut
@@ -123,7 +123,9 @@ void function CreateFlags()
file.imcFlagSpawn.Destroy()
file.imcFlag.Destroy()
file.imcFlagReturnTrigger.Destroy()
-
+ }
+ if ( IsValid( file.militiaFlagSpawn ) )
+ {
file.militiaFlagSpawn.Destroy()
file.militiaFlag.Destroy()
file.militiaFlagReturnTrigger.Destroy()