From 44db86fbe22f9a44be6b074e77827bb174c4ee25 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Sun, 4 Apr 2021 03:03:25 +0700 Subject: [PATCH] Fix possible log spam by `FixDoshSpam` feature --- sources/FixDoshSpam/MutatorListener_FixDoshSpam.uc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/FixDoshSpam/MutatorListener_FixDoshSpam.uc b/sources/FixDoshSpam/MutatorListener_FixDoshSpam.uc index fae950c..b173f0a 100644 --- a/sources/FixDoshSpam/MutatorListener_FixDoshSpam.uc +++ b/sources/FixDoshSpam/MutatorListener_FixDoshSpam.uc @@ -1,7 +1,7 @@ /** * Overloaded mutator events listener to catch and, possibly, * prevent spawning dosh actors. - * Copyright 2019 Anton Tarasenko + * Copyright 2019 - 2021 Anton Tarasenko *------------------------------------------------------------------------------ * This file is part of Acedia. * @@ -25,6 +25,7 @@ static function bool CheckReplacement(Actor other, out byte isSuperRelevant) { local FixDoshSpam doshFix; local PlayerController player; + if (other == none) return true; if (other.class != class'CashPickup') return true; // This means this dosh wasn't spawned in `TossCash()` of `KFPawn`, // so it isn't related to the exploit we're trying to fix.