diff options
author | Milo Akerman <40443620+MiloAkerman@users.noreply.github.com> | 2022-01-31 19:14:41 -0500 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-02-03 17:02:08 -0300 |
commit | 0e1e5beb7c0104682d5747f8e36ffcfd0b9e8115 (patch) | |
tree | 6737086bbedc86bae887fa21cff4700efc4dea9e | |
parent | 1e17c6e8912a22b55eb12dbccdc98e3810678efc (diff) | |
download | NorthstarMods-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.nut | 2 |
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() |