aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Akerman <40443620+MiloAkerman@users.noreply.github.com>2022-01-31 19:14:41 -0500
committerBarichello <artur@barichello.me>2022-02-03 17:02:08 -0300
commit0e1e5beb7c0104682d5747f8e36ffcfd0b9e8115 (patch)
tree6737086bbedc86bae887fa21cff4700efc4dea9e
parent1e17c6e8912a22b55eb12dbccdc98e3810678efc (diff)
downloadNorthstarMods-0e1e5beb7c0104682d5747f8e36ffcfd0b9e8115.tar.gz
NorthstarMods-0e1e5beb7c0104682d5747f8e36ffcfd0b9e8115.zip
Checks soul validity
I don't know what triggers this but I have no idea why it would be null
-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 ca69b6b6a..a855100eb 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()