Skip to content

Commit

Permalink
NPCBots: Fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed Mar 3, 2024
1 parent 534c1ec commit a8e99a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Conditions/ConditionMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ bool Condition::Meets(ConditionSourceInfo& sourceInfo) const
{
//npcbot
if (object->IsNPCBot())
condMeets = object->ToCreature()->GetGender() == ConditionValue1;
condMeets = object->ToCreature()->GetGender() == Gender(ConditionValue1);
else
//end npcbot
if (Player* player = object->ToPlayer())
Expand Down

0 comments on commit a8e99a3

Please sign in to comment.