From f602ea9358fa19b6a773330861b835e0224afa47 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 25 Apr 2020 20:13:46 +0200 Subject: [PATCH] Fixed Windows build issue. --- src/Battling/Models/ExecutingAttack.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Battling/Models/ExecutingAttack.hpp b/src/Battling/Models/ExecutingAttack.hpp index f00b709..c65e795 100644 --- a/src/Battling/Models/ExecutingAttack.hpp +++ b/src/Battling/Models/ExecutingAttack.hpp @@ -69,7 +69,7 @@ namespace CreatureLib::Battling { throw CreatureException("Invalid target requested."); } - bool IsCreatureTarget(Creature* creature) noexcept { return _targets.IndexOf(creature) != -1; } + bool IsCreatureTarget(Creature* creature) noexcept { return _targets.IndexOf(creature) != (size_t)-1; } const List& GetTargets() noexcept { return _targets; } uint8_t GetNumberOfHits() const noexcept { return _numberHits; }