diff --git a/src/g_main.c b/src/g_main.c index 47e0f6a..2dd0309 100644 --- a/src/g_main.c +++ b/src/g_main.c @@ -375,9 +375,9 @@ ExitLevel(void) continue; } - if (ent->health > ent->client->pers.max_health) + if (ent->health > ent->max_health) { - ent->health = ent->client->pers.max_health; + ent->health = ent->max_health; } }