From 347fb87b3d00a613bd2ffdc0a58d6932e44c9be3 Mon Sep 17 00:00:00 2001 From: Charles A Edwards Date: Wed, 25 Mar 2015 10:52:52 +0000 Subject: [PATCH] Case statement not terminated properly missing break; It caused a start-up error, besides being totally wrong. My bad :( --- src/game/Object/ObjectMgr.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/Object/ObjectMgr.cpp b/src/game/Object/ObjectMgr.cpp index 11abe9cd..da2e1974 100644 --- a/src/game/Object/ObjectMgr.cpp +++ b/src/game/Object/ObjectMgr.cpp @@ -7576,7 +7576,8 @@ bool PlayerCondition::IsValid(uint16 entry, ConditionType condition, uint32 valu { sLog.outErrorDb("Creature in range condition (entry %u, type %u) has an invalid value in value2. (Range %u must be greater than 0), skipping.", entry, condition, value2); return false; - } + } + break; } case CONDITION_GAMEOBJECT_IN_RANGE: { @@ -7589,7 +7590,8 @@ bool PlayerCondition::IsValid(uint16 entry, ConditionType condition, uint32 valu { sLog.outErrorDb("Game object in range condition (entry %u, type %u) has an invalid value in value2 (range). (Range %u must be greater than 0), skipping.", entry, condition, value2); return false; - } + } + break; } case CONDITION_NONE: break;