summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-02-15 09:05:16 +0100
committerHaru <haru@dotalux.com>2020-04-05 21:20:35 +0200
commitf6b8fe728b4f0cf97da9fea8935c186893868c4d (patch)
treeabde95c1af461159900f8cc91158da76c35491c6 /src/map/script.c
parent70edf6f2d4f042b470cb1f62e408c076f5c8d76b (diff)
downloadhercules-f6b8fe728b4f0cf97da9fea8935c186893868c4d.tar.gz
hercules-f6b8fe728b4f0cf97da9fea8935c186893868c4d.tar.bz2
hercules-f6b8fe728b4f0cf97da9fea8935c186893868c4d.tar.xz
hercules-f6b8fe728b4f0cf97da9fea8935c186893868c4d.zip
Add pet_set_hunger() function
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
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);