summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-22 05:13:28 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-22 05:13:28 +0200
commit3894021fba9e54b5075c502cbe05e08fc23e9795 (patch)
treeec12b08562c95f2f5ddb8c84f38ef9e4782861cb
parent2669d54e37bb231866479efd177808ec6ab3eab8 (diff)
downloadhercules-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
-rw-r--r--src/map/atcommand.c2
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);
}