fix: Accessed None 'Pawn' (ServerExtMut:NetDamage)

ScriptWarning: Accessed None 'Pawn'
011ServerExtMut KF-TrapLandAlter.TheWorld:PersistentLevel.ServerExtMut_0
011Function ServerExtMut.ServerExtMut:NetDamage:0344
This commit is contained in:
GenZmeY 2022-07-12 17:34:14 +03:00
parent f729eebe51
commit de4b7ff714

View File

@ -778,7 +778,7 @@ function NetDamage(int OriginalDamage, out int Damage, Pawn Injured, Controller
HackSetHistory(KFPawn(Injured),Injured,Ext_T_MonsterPRI(InstigatedBy.PlayerReplicationInfo).OwnerController,Damage,HitLocation);
}
}
else if (KFPawn(InstigatedBy.Pawn).GetTeamNum() != KFPawn(Injured).GetTeamNum())
else if (InstigatedBy.Pawn != None && KFPawn(InstigatedBy.Pawn).GetTeamNum() != KFPawn(Injured).GetTeamNum())
{
Momentum = vect(0,0,0);
Damage = 0;