diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 05:16:46 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 05:16:46 +0200 |
commit | 6f4439ee2182dd3421ff50c7b479c1b9e7f02fcb (patch) | |
tree | 81c6bf34b15fef832088ba85d74c99418559a98d /src/map/script.c | |
parent | 18bccc7a437fb11dd65a87b860c0183308306c1b (diff) | |
download | hercules-6f4439ee2182dd3421ff50c7b479c1b9e7f02fcb.tar.gz hercules-6f4439ee2182dd3421ff50c7b479c1b9e7f02fcb.tar.bz2 hercules-6f4439ee2182dd3421ff50c7b479c1b9e7f02fcb.tar.xz hercules-6f4439ee2182dd3421ff50c7b479c1b9e7f02fcb.zip |
Remove/move unnecessarily calling clif_send_petstatus()
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index d501818d9..3da0cdceb 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -20518,6 +20518,8 @@ static BUILDIN(setunitdata) break; case UDT_LEVEL: pd->pet.level = (short)val; + if (pd->msd != NULL) + clif->send_petstatus(pd->msd); // Send pet data. break; case UDT_HP: status->set_hp(bl, (unsigned int)val, STATUS_HEAL_DEFAULT); @@ -20639,7 +20641,6 @@ static BUILDIN(setunitdata) return false; } - clif->send_petstatus(pd->msd); // Send pet data. break; } case BL_MER: { |