From 3894021fba9e54b5075c502cbe05e08fc23e9795 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Mon, 22 Jun 2020 05:13:28 +0200 Subject: Call pet->set_hunger() in ACMD(pethungry) instead of directly assigning the value --- src/map/atcommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3-70-g09d2