Update to latest Arbutils
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-03-23 18:49:01 +01:00
parent de26a41fcf
commit 9af68fa773
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ PkmnLib::Battling::Battle* PkmnLib::Battling::Battle::Clone() const {
continue;
}
auto partyIndex = party->GetParty()->GetParty().IndexOf(creature.GetValue());
if (partyIndex != -1U) {
auto c = battle->_parties.At(j)->GetParty()->GetParty()[partyIndex];
if (partyIndex.has_value()) {
auto c = battle->_parties.At(j)->GetParty()->GetParty()[partyIndex.value()];
battle->_sides.At(i)->SetCreature(c, creatureIndex);
j = _parties.Count();
break;