fix: Accessed None 'CurrentPerk' (ExtPlayerController:CheckPerk)
ScriptWarning: Accessed None 'CurrentPerk' 011ExtPlayerController KF-Crazy_Playboy_Edited.TheWorld:PersistentLevel.ExtPlayerController_1 011Function ServerExt.ExtPlayerController:CheckPerk:00B3
This commit is contained in:
parent
bec774b38c
commit
d804cdc3bd
@ -91,13 +91,16 @@ simulated function Destroyed()
|
||||
|
||||
function CheckPerk()
|
||||
{
|
||||
if (CurrentPerk!=ActivePerkManager)
|
||||
if (CurrentPerk != ActivePerkManager)
|
||||
{
|
||||
CurrentPerk = ActivePerkManager;
|
||||
if (KFPlayerReplicationInfo(PlayerReplicationInfo)!=None)
|
||||
{
|
||||
KFPlayerReplicationInfo(PlayerReplicationInfo).NetPerkIndex = 0;
|
||||
KFPlayerReplicationInfo(PlayerReplicationInfo).CurrentPerkClass = ActivePerkManager.CurrentPerk.BasePerk;
|
||||
if (ActivePerkManager.CurrentPerk != None)
|
||||
{
|
||||
KFPlayerReplicationInfo(PlayerReplicationInfo).CurrentPerkClass = ActivePerkManager.CurrentPerk.BasePerk;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user