More sanitizer fixes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-25 19:21:02 +01:00
parent 38a26888be
commit bc1f78c8bd
4 changed files with 6 additions and 2 deletions

View File

@@ -22,6 +22,9 @@ bool CreatureLib::Battling::ChoiceQueue::MoveCreatureChoiceNext(CreatureLib::Bat
for (size_t i = choiceIndex - 1; i >= _current && i != SIZE_MAX; i--) {
// Place everything in one spot later.
_queue[i + 1] = _queue[i];
if (i == 0) {
break;
}
}
// Set the creature choice up next.
_queue[_current] = creatureChoice;