From 903bcfc61fd031985e55a604293f85c2597a8320 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Thu, 13 Jan 2022 20:51:47 +0000 Subject: eblockface --- src/Mobs/Monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Mobs/Monster.cpp') diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 0ebf30554..c6f786eac 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -1511,7 +1511,7 @@ void cMonster::RightClickFeed(cPlayer & a_Player) void cMonster::AddRandomDropItem(cItems & a_Drops, unsigned int a_Min, unsigned int a_Max, short a_Item, short a_ItemHealth) { auto Count = GetRandomProvider().RandInt(a_Min, a_Max); - char MaxStackSize = ItemHandler(a_Item)->GetMaxStackSize(); + char MaxStackSize = cItem(a_Item).GetMaxStackSize(); while (Count > MaxStackSize) { a_Drops.emplace_back(a_Item, MaxStackSize, a_ItemHealth); -- cgit v1.2.3