Case statement not terminated properly

missing break;

It caused a start-up error, besides being totally wrong.

My bad :(
This commit is contained in:
Charles A Edwards 2015-03-25 10:52:52 +00:00
parent cebb3244a0
commit 347fb87b3d

View File

@ -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); 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; return false;
} }
break;
} }
case CONDITION_GAMEOBJECT_IN_RANGE: 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); 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; return false;
} }
break;
} }
case CONDITION_NONE: case CONDITION_NONE:
break; break;