From 0b9028ea97bb68a939f6d662192991fbd28befed Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 29 Oct 2021 18:12:35 +0200 Subject: [PATCH] Fixes BattleSide AddVolatile using the wrong script category. Signed-off-by: Deukhoofd --- src/Battling/Models/BattleSide.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Battling/Models/BattleSide.cpp b/src/Battling/Models/BattleSide.cpp index 70b3d99..fb6025e 100644 --- a/src/Battling/Models/BattleSide.cpp +++ b/src/Battling/Models/BattleSide.cpp @@ -139,9 +139,9 @@ BattleScript* BattleSide::AddVolatileScript(const ArbUt::StringView& key) { script.GetValue()->Stack(); return script.GetValue(); } - script = _battle->GetLibrary()->LoadScript(ScriptCategory::Battle, key); + script = _battle->GetLibrary()->LoadScript(ScriptCategory::Side, key); if (!script.HasValue()) { - THROW("Invalid volatile script requested for battle: '" << key.c_str() << "'."); + THROW("Invalid volatile script requested for battleside: '" << key.c_str() << "'."); } return _volatile.Add(script.GetValue()); }