Fix ItemActor::getItemStack() crash

This commit is contained in:
Qiuzhizhe 2023-04-08 21:45:41 -07:00
parent acc469d6b2
commit 00db9f6602

View File

@ -3,7 +3,7 @@
#include <llapi/HookAPI.h>
ItemStack* ItemActor::getItemStack() {
return dAccess<ItemStack*>(this, ll::offset::ITEMACTORAPI_getItemStack); // IDA Player::take Line127
return &dAccess<ItemStack>(this, ll::offset::ITEMACTORAPI_getItemStack); // IDA Player::take Line127
}
int ItemActor::getDespawnTime() {