Fixed Windows build.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
be6b2778a5
commit
32584ac406
|
@ -2,7 +2,7 @@
|
|||
|
||||
bool CreatureLib::Battling::ChoiceQueue::MoveCreatureChoiceNext(CreatureLib::Battling::Creature* creature) {
|
||||
// Find which index the creature choice is at.
|
||||
size_t choiceIndex = -1;
|
||||
size_t choiceIndex = SIZE_MAX;
|
||||
for (size_t index = _current; index < _queue.size(); index++) {
|
||||
if (_queue.at(index)->GetUser() == creature) {
|
||||
// If the creature choice is already next up, return.
|
||||
|
@ -12,7 +12,7 @@ bool CreatureLib::Battling::ChoiceQueue::MoveCreatureChoiceNext(CreatureLib::Bat
|
|||
}
|
||||
}
|
||||
// If the creature has no choice anymore, return.
|
||||
if (choiceIndex == -1)
|
||||
if (choiceIndex == SIZE_MAX)
|
||||
return false;
|
||||
|
||||
// Save the pointer to the creature choice.
|
||||
|
|
Loading…
Reference in New Issue