diff options
| author | Vincent-Michael <vincent_michael@gmx.de> | 2015-11-14 00:56:44 +0100 |
|---|---|---|
| committer | Vincent-Michael <vincent_michael@gmx.de> | 2015-11-14 00:56:44 +0100 |
| commit | d1889602166b03a9c4dc07b6523410714ef3d1f6 (patch) | |
| tree | 43a1b310edc6f16f9cb040c46afc163aca2be7ef /src | |
| parent | 2ee01a7b3d7b4b48a10231c9237b8d600690da5b (diff) | |
Core/Condition: Fix issue reported by static analysis
Coverity defect ID: 1339314
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Conditions/ConditionMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index d9fa125b64c..a3e8dfb58e7 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -324,7 +324,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; |
