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,15 +91,18 @@ simulated function Destroyed()
|
|||||||
|
|
||||||
function CheckPerk()
|
function CheckPerk()
|
||||||
{
|
{
|
||||||
if (CurrentPerk!=ActivePerkManager)
|
if (CurrentPerk != ActivePerkManager)
|
||||||
{
|
{
|
||||||
CurrentPerk = ActivePerkManager;
|
CurrentPerk = ActivePerkManager;
|
||||||
if (KFPlayerReplicationInfo(PlayerReplicationInfo)!=None)
|
if (KFPlayerReplicationInfo(PlayerReplicationInfo)!=None)
|
||||||
{
|
{
|
||||||
KFPlayerReplicationInfo(PlayerReplicationInfo).NetPerkIndex = 0;
|
KFPlayerReplicationInfo(PlayerReplicationInfo).NetPerkIndex = 0;
|
||||||
|
if (ActivePerkManager.CurrentPerk != None)
|
||||||
|
{
|
||||||
KFPlayerReplicationInfo(PlayerReplicationInfo).CurrentPerkClass = ActivePerkManager.CurrentPerk.BasePerk;
|
KFPlayerReplicationInfo(PlayerReplicationInfo).CurrentPerkClass = ActivePerkManager.CurrentPerk.BasePerk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
reliable client function AddAdminCmd(string S)
|
reliable client function AddAdminCmd(string S)
|
||||||
|
Loading…
Reference in New Issue
Block a user