From 1098caff4a7e751c3e7c22e63270b490708d7b06 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Wed, 13 Jul 2022 09:00:36 +0300 Subject: [PATCH] fix: Accessed None 'FireballBarrageSM' (WMPawn_ZedHusk_Omega:ANIMNOTIFY_HuskRandomFireballAttack) ScriptWarning: Accessed None 'FireballBarrageSM' 011WMPawn_ZedHusk_Omega KF-OmahaBeach.TheWorld:PersistentLevel.WMPawn_ZedHusk_Omega_17 011Function CustomZeds.WMPawn_ZedHusk_Omega:ANIMNOTIFY_HuskRandomFireballAttack:0093 --- CustomZeds/Classes/WMPawn_ZedHusk_Omega.uc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CustomZeds/Classes/WMPawn_ZedHusk_Omega.uc b/CustomZeds/Classes/WMPawn_ZedHusk_Omega.uc index 47d35ab..67ce0dc 100644 --- a/CustomZeds/Classes/WMPawn_ZedHusk_Omega.uc +++ b/CustomZeds/Classes/WMPawn_ZedHusk_Omega.uc @@ -115,7 +115,10 @@ function ANIMNOTIFY_HuskRandomFireballAttack() if (HuskAIC != None) { FireballBarrageSM = WMSM_Husk_Omega_FireBallBarrageAttack(SpecialMoves[SpecialMove]); - HuskAIC.ShootFireballBarrage(default.SuicideFireballClass, FireballBarrageSM.GetFireOffset()); + if (FireballBarrageSM != None) + { + HuskAIC.ShootFireballBarrage(default.SuicideFireballClass, FireballBarrageSM.GetFireOffset()); + } } } }