From 0e1e5beb7c0104682d5747f8e36ffcfd0b9e8115 Mon Sep 17 00:00:00 2001 From: Milo Akerman <40443620+MiloAkerman@users.noreply.github.com> Date: Mon, 31 Jan 2022 19:14:41 -0500 Subject: Checks soul validity I don't know what triggers this but I have no idea why it would be null --- Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Northstar.CustomServers') 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() -- cgit v1.2.3