aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut2
1 files changed, 2 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut
index ca69b6b6..a855100e 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut
@@ -521,6 +521,8 @@ function PilotBecomesTitan( entity player, entity titan, bool fullCopy = true )
//PROTO_DisplayTitanLoadouts( player, titan, loadout )
entity soul = titan.GetTitanSoul()
+ if( !IsValid(soul) )
+ return
soul.soul.lastOwner = player
player.s.storedPlayerSettings <- player.GetPlayerSettings()