diff options
-rw-r--r-- | Changelog.txt | 1 | ||||
-rw-r--r-- | src/map/atcommand.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Changelog.txt b/Changelog.txt index 30e853e28..0b0f8f9e3 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,6 @@ Date Added 12/8 + * fixed @revive [MouseJstr] * Added option to turn off login server logging [celest] * Moved char server starting logging to after we've read the configuration file first [celest] diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 1e0139286..5b4eafb6a 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -4087,12 +4087,12 @@ int atcommand_revive( } if ((pl_sd = map_nick2sd(character)) != NULL) { - if (pc_isdead(sd)) { + if (pc_isdead(pl_sd)) { pl_sd->status.hp = pl_sd->status.max_hp; clif_skill_nodamage(&sd->bl,&sd->bl,ALL_RESURRECTION,4,1); pc_setstand(pl_sd); if (battle_config.pc_invincible_time > 0) - pc_setinvincibletimer(sd, battle_config.pc_invincible_time); + pc_setinvincibletimer(pl_sd, battle_config.pc_invincible_time); clif_updatestatus(pl_sd, SP_HP); clif_updatestatus(pl_sd, SP_SP); clif_resurrection(&pl_sd->bl, 1); |