diff --git a/src/Battling/Models/BattleSide.hpp b/src/Battling/Models/BattleSide.hpp index 70ae9cf..24420eb 100644 --- a/src/Battling/Models/BattleSide.hpp +++ b/src/Battling/Models/BattleSide.hpp @@ -10,7 +10,7 @@ namespace CreatureLib::Battling { u8 _creaturesPerSide; ArbUt::List> _creatures; ArbUt::List> _choices; - ArbUt::List _fillableSlots; + std::vector _fillableSlots; u8 _choicesSet = 0; ScriptSet _volatile; ArbUt::BorrowedPtr _battle; @@ -23,7 +23,7 @@ namespace CreatureLib::Battling { for (size_t i = 0; i < creaturesPerSide; i++) { _creatures.Append(nullptr); _choices.Append(nullptr); - _fillableSlots.Append(true); + _fillableSlots[i] = true; } ResetChoices(); } @@ -72,7 +72,7 @@ namespace CreatureLib::Battling { if (!_creatures[i].HasValue()) continue; if (_creatures[i].GetValue() == creature) { - _fillableSlots.At(i) = false; + _fillableSlots.at(i) = false; return; } } @@ -83,7 +83,7 @@ namespace CreatureLib::Battling { if (!_creatures[i].HasValue()) continue; if (_creatures[i].GetValue() == creature) { - return _fillableSlots.At(i); + return _fillableSlots.at(i); } } return false;