From 69f60aa53356e23407ce48ad827c6d83bcf596ea Mon Sep 17 00:00:00 2001 From: Dinorush <62536724+Dinorush@users.noreply.github.com> Date: Sun, 10 Jul 2022 10:41:54 -0400 Subject: Fix check to set loadout to callback version (#405) --- Northstar.CustomServers/mod/scripts/vscripts/_loadouts_mp.gnut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Northstar.CustomServers/mod/scripts') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_loadouts_mp.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_loadouts_mp.gnut index 5359eac9..3e8ac9ea 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/_loadouts_mp.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/_loadouts_mp.gnut @@ -100,7 +100,7 @@ TitanLoadoutDef function GetTitanLoadoutForPlayer( entity player ) // whether the callback has changed the player's titan loadout wasChanged = wasChanged || callbackRet.wasChanged - if ( wasChanged ) + if ( callbackRet.wasChanged ) loadout = callbackRet.loadout // whether the callback has indicated that we should run no more callbacks ( e.g. if we're forcing a given loadout to be chosen, we shouldn't run any more ) -- cgit v1.2.3