aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Conditions/ConditionMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.cpp')
-rw-r--r--src/server/game/Conditions/ConditionMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp
index d641f70fb6f..c0d1ac0f4a4 100644
--- a/src/server/game/Conditions/ConditionMgr.cpp
+++ b/src/server/game/Conditions/ConditionMgr.cpp
@@ -222,7 +222,7 @@ bool Condition::Meets(ConditionSourceInfo& sourceInfo) const
case CONDITION_GENDER:
{
if (Player* player = object->ToPlayer())
- condMeets = player->GetGender() == ConditionValue1;
+ condMeets = player->GetNativeGender() == Gender(ConditionValue1);
break;
}
case CONDITION_SKILL:
@@ -2713,7 +2713,7 @@ bool ConditionMgr::IsPlayerMeetingCondition(Player const* player, PlayerConditio
if (condition->Gender >= 0 && player->GetGender() != condition->Gender)
return false;
- if (condition->NativeGender >= 0 && player->GetNativeSex() != condition->NativeGender)
+ if (condition->NativeGender >= 0 && player->GetNativeGender() != condition->NativeGender)
return false;
if (condition->PowerType != -1 && condition->PowerTypeComp)