diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2024-08-30 14:52:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 14:52:21 +0200 |
commit | 6cd957e93f8eccf42d7cb08afc19fd4650ee0efd (patch) | |
tree | 9f2edc6374847398ceb69371c7eadd8ce3f048c0 /Northstar.CustomServers/mod/scripts/vscripts/gamemodes | |
parent | 83afd8cb140001d415b6a8efc27995559485b1f7 (diff) | |
download | NorthstarMods-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.nut | 4 |
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() |