use a cast

fix warning

remove pragma

we dont need this tbh
This commit is contained in:
David Markowitz
2024-12-14 17:35:56 -08:00
parent 34618607c3
commit 5ff121612e
2 changed files with 1 additions and 2 deletions

View File

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