diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 05:13:28 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 05:13:28 +0200 |
commit | 3894021fba9e54b5075c502cbe05e08fc23e9795 (patch) | |
tree | ec12b08562c95f2f5ddb8c84f38ef9e4782861cb /src/map/atcommand.c | |
parent | 2669d54e37bb231866479efd177808ec6ab3eab8 (diff) | |
download | hercules-3894021fba9e54b5075c502cbe05e08fc23e9795.tar.gz hercules-3894021fba9e54b5075c502cbe05e08fc23e9795.tar.bz2 hercules-3894021fba9e54b5075c502cbe05e08fc23e9795.tar.xz hercules-3894021fba9e54b5075c502cbe05e08fc23e9795.zip |
Call pet->set_hunger() in ACMD(pethungry) instead of directly assigning the value
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 379405833..3b4334275 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2855,7 +2855,7 @@ ACMD(pethungry) } if (hungry != pd->pet.hungry) { // No need to update the pet's status if hunger value won't change. - pd->pet.hungry = hungry; + pet->set_hunger(pd, hungry); clif->send_petstatus(sd); } |