diff --git a/src/Battling/Pokemon/Pokemon.cpp b/src/Battling/Pokemon/Pokemon.cpp index b72a734..12b4a4b 100644 --- a/src/Battling/Pokemon/Pokemon.cpp +++ b/src/Battling/Pokemon/Pokemon.cpp @@ -39,6 +39,8 @@ void PkmnLib::Battling::Pokemon::SetStatus(const ArbUt::StringView& name) { } } void PkmnLib::Battling::Pokemon::ClearStatus() { + if (_statusScript == nullptr) + return; _statusScript->OnRemove(); _statusScript = nullptr; if (_battle != nullptr) {