forked from kyonshi/grenzland-mud
Fixed advance crash. --Rumble
This commit is contained in:
@@ -281,7 +281,7 @@ void gain_exp_regardless(struct char_data *ch, int gain)
|
||||
GET_EXP(ch) = 0;
|
||||
|
||||
if (!IS_NPC(ch)) {
|
||||
while (!IS_ADMIN(ch, ADMLVL_IMPL) &&
|
||||
while ((GET_LEVEL(ch) < CONFIG_MAX_LEVEL) &&
|
||||
GET_EXP(ch) >= level_exp(GET_CLASS(ch), GET_LEVEL(ch) + 1)) {
|
||||
GET_LEVEL(ch) += 1;
|
||||
num_levels++;
|
||||
|
||||
Reference in New Issue
Block a user