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
@ -97,10 +97,13 @@ function CheckPerk()
|
|||||||
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…
x
Reference in New Issue
Block a user