Fixes BattleSide AddVolatile using the wrong script category.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
b4ef1ea98e
commit
0b9028ea97
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue