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

This commit is contained in:
Deukhoofd committed 2020-02-22 15:11:18 +01:00
1 parent be6b2778a5
commit 32584ac406
1 file changed
+2 -2
+2 -2
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.