Fixed Windows build.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-02-22 15:11:18 +01:00
parent be6b2778a5
commit 32584ac406
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 2 deletions

View File

@ -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.