diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2023-09-17 01:38:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-17 02:38:49 +0200 |
commit | 0068720fe91307c1e538b6a104dc308204fcf400 (patch) | |
tree | afb5e2548f36fc233014ffa3c12893b2e0951ab6 /Northstar.CustomServers/mod | |
parent | 43d238aa41b85345266f1c35fe1d42ef88610f1e (diff) | |
download | NorthstarMods-0068720fe91307c1e538b6a104dc308204fcf400.tar.gz NorthstarMods-0068720fe91307c1e538b6a104dc308204fcf400.zip |
Fix a crash with IsPetTitan (#701)
Diffstat (limited to 'Northstar.CustomServers/mod')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/_utility_shared.nut | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_utility_shared.nut b/Northstar.CustomServers/mod/scripts/vscripts/_utility_shared.nut index c5887f2b..47dd9294 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/_utility_shared.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/_utility_shared.nut @@ -1601,6 +1601,9 @@ float function GetPulseFrac( rate = 1, startTime = 0 ) bool function IsPetTitan( titan ) { Assert( titan.IsTitan() ) + + if ( !titan.GetTitanSoul() ) + return false return titan.GetTitanSoul().GetBossPlayer() != null } |