Skip to content

Commit

Permalink
use a cast
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC committed Dec 15, 2024
1 parent 92398be commit 9381318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dGame/dUtilities/Preconditions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ bool Precondition::CheckValue(Entity* player, const uint32_t value, bool evaluat

return inventoryComponent->GetLotCount(value) >= count;
case PreconditionType::DoesNotHaveItem:
return inventoryComponent->IsEquipped(value) == count;
return inventoryComponent->IsEquipped(value) < static_cast<bool>(count);
case PreconditionType::HasAchievement:
if (missionComponent == nullptr) return false;
return missionComponent->GetMissionState(value) >= eMissionState::COMPLETE;
Expand Down

0 comments on commit 9381318

Please sign in to comment.