From f6b8fe728b4f0cf97da9fea8935c186893868c4d Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Sat, 15 Feb 2020 09:05:16 +0100 Subject: Add pet_set_hunger() function --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index b6e3b8198..a9336a854 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -20109,7 +20109,7 @@ static BUILDIN(setunitdata) clif->send_petdata(pd->msd, pd, 1, pd->pet.intimate); break; case UDT_HUNGER: - pd->pet.hungry = (short) val; + pet->set_hunger(pd, val); break; default: ShowWarning("buildin_setunitdata: Invalid data type '%s' for pet unit.\n", udtype); -- cgit v1.2.3-70-g09d2