diff options
author | Spp <spp@jorge.gr> | 2012-02-22 09:15:57 +0100 |
---|---|---|
committer | Spp <spp@jorge.gr> | 2012-02-22 09:15:57 +0100 |
commit | 1e246cb66c922a96b7519f91a6439e388709738b (patch) | |
tree | 7f78a9aee14f4164de6cbd0be42c63c2db0381f9 /src/server/game/Conditions/ConditionMgr.cpp | |
parent | 6870ee58483c5dc3ebec9c8b6225aaee295c5133 (diff) |
Fix build (gcc) and fix warnings
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.cpp')
-rwxr-xr-x | src/server/game/Conditions/ConditionMgr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index 766123e4b7d..442305ef6b2 100755 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -1303,14 +1303,20 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond) case TARGET_SELECT_CATEGORY_CONE: case TARGET_SELECT_CATEGORY_AREA: continue; + default: + break; } + switch (spellInfo->Effects[i].TargetB.GetSelectionCategory()) { case TARGET_SELECT_CATEGORY_NEARBY: case TARGET_SELECT_CATEGORY_CONE: case TARGET_SELECT_CATEGORY_AREA: continue; + default: + break; } + sLog->outErrorDb("SourceEntry %u SourceGroup %u in `condition` table - spell %u does not have implicit targets of types: _AREA_, _CONE_, _NEARBY_ for effect %u, SourceGroup needs correction, ignoring.", cond->SourceEntry, origGroup, cond->SourceEntry, uint32(i)); cond->SourceGroup &= ~(1<<i); } |