Skip to content

Commit

Permalink
[9116] Lost break/return in CONDITION_LEVEL cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Jan 7, 2010
1 parent 87a2e4d commit 9e9ea44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/game/ObjectMgr.cpp
Expand Up @@ -7265,6 +7265,7 @@ bool PlayerCondition::Meets(Player const * player) const
case 1: return player->getLevel() >= value1;
case 2: return player->getLevel() <= value1;
}
return false;
}
default:
return false;
Expand Down Expand Up @@ -7453,6 +7454,8 @@ bool PlayerCondition::IsValid(ConditionType condition, uint32 value1, uint32 val
sLog.outErrorDb("Level condition has invalid argument %u (must be 0..2), skipped", value2);
return false;
}

break;
}
case CONDITION_NONE:
break;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9115"
#define REVISION_NR "9116"
#endif // __REVISION_NR_H__

0 comments on commit 9e9ea44

Please sign in to comment.