mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Condition: Fix issue reported by static analysis
Coverity defect ID: 1339314
(cherry picked from commit d188960216)
This commit is contained in:
committed by
Carbenium
parent
230e820898
commit
700508e484
@@ -326,7 +326,7 @@ bool Condition::Meets(ConditionSourceInfo& sourceInfo) const
|
||||
Unit* unit = object->ToUnit();
|
||||
if (toUnit && unit)
|
||||
{
|
||||
switch (ConditionValue2)
|
||||
switch (static_cast<RelationType>(ConditionValue2))
|
||||
{
|
||||
case RELATION_SELF:
|
||||
condMeets = unit == toUnit;
|
||||
|
||||
Reference in New Issue
Block a user