From f5e29b71f2147dd0d87f4b96f074d4db05ac1034 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 8 Mar 2017 05:19:35 +1000 Subject: [PATCH] Replicate old mutator not added warning --- qcsrc/common/mutators/base.qh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcsrc/common/mutators/base.qh b/qcsrc/common/mutators/base.qh index 92e6323b3..7ef70f2c4 100644 --- a/qcsrc/common/mutators/base.qh +++ b/qcsrc/common/mutators/base.qh @@ -234,6 +234,12 @@ bool Mutator_Add(Mutator mut) void Mutator_Remove(Mutator mut) { + if(!mut.m_added) + { + backtrace("WARNING: removing not-added mutator\n"); + return; + } + mut.m_added = false; mutatorfunc_t func = mut.mutatorfunc; if (func(MUTATOR_REMOVING)) { -- 2.39.2