From be3b1fcf5a49762a39f800b03f51335d1025c554 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 25 Apr 2020 11:43:04 +0200 Subject: [PATCH] Ensure Battle passes the right script count. --- src/Battling/Battle/Battle.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Battling/Battle/Battle.hpp b/src/Battling/Battle/Battle.hpp index d477a17..bfcc8ed 100644 --- a/src/Battling/Battle/Battle.hpp +++ b/src/Battling/Battle/Battle.hpp @@ -32,6 +32,7 @@ namespace PkmnLib::Battling { } const Arbutils::CaseInsensitiveConstString& GetWeatherName() noexcept { return _weatherScript->GetName(); } + size_t ScriptCount() const override { return CreatureLib::Battling::Battle::ScriptCount() + 1; } void GetActiveScripts(List& scripts) override { CreatureLib::Battling::Battle::GetActiveScripts(scripts); scripts.Append(CreatureLib::Battling::ScriptWrapper(