mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-05 17:08:49 +01:00
Fixed advance crash. --Rumble
This commit is contained in:
parent
0955ee8864
commit
6f88f62e76
1 changed files with 1 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue