aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-30 02:23:12 +0000
committerGitHub <noreply@github.com>2021-12-30 02:23:12 +0000
commitf430dd72c6c58a434b0b3caf2b7f0f892c706b76 (patch)
treefd4fb559d300d80cdb204d08cd2947b758632d0d /Northstar.CustomServers/mod/scripts
parentbbc94912417e467b805108e709d3c49fa1bb6389 (diff)
parent67611e7fad615b33db8c4751b3e61ff44a630071 (diff)
downloadNorthstarMods-f430dd72c6c58a434b0b3caf2b7f0f892c706b76.tar.gz
NorthstarMods-f430dd72c6c58a434b0b3caf2b7f0f892c706b76.zip
Merge pull request #19 from connieprice/main
Fixed the game erroring when disembarking from a titan and the player…
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut7
1 files changed, 6 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut
index 7b126cd0..c84e6aba 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut
@@ -178,7 +178,12 @@ void function GiveWeaponsFromStoredArray( entity player, array<StoredWeapon> sto
UpdateProScreen( player, weapon )
}
- string weaponCategory = GetWeaponInfoFileKeyField_GlobalString( weapon.GetWeaponClassName(), "menu_category" )
+ string weaponCategory = ""
+ if ( IsWeaponKeyFieldDefined(weapon.GetWeaponClassName(), "menu_category") )
+ {
+ weaponCategory = GetWeaponInfoFileKeyField_GlobalString( weapon.GetWeaponClassName(), "menu_category" )
+ }
+
if ( weaponCategory == "at" || weaponCategory == "special" ) // refill AT/grenadier ammo stockpile
{
int defaultTotal = weapon.GetWeaponSettingInt( eWeaponVar.ammo_default_total )