From 7632af3c73fc4e4ae3ad4c98c90c39b47c3b8379 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Tue, 4 Oct 2022 08:31:36 -0400 Subject: Consolidate API object code (#12728) Co-authored-by: sfan5 --- src/script/common/c_content.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/common/c_content.cpp') diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index 93202dcee..928717a05 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -1078,7 +1078,7 @@ void read_server_sound_params(lua_State *L, int index, lua_pop(L, 1); lua_getfield(L, index, "object"); if(!lua_isnil(L, -1)){ - ObjectRef *ref = ObjectRef::checkobject(L, -1); + ObjectRef *ref = ModApiBase::checkObject(L, -1); ServerActiveObject *sao = ObjectRef::getobject(ref); if(sao){ params.object = sao->getId(); @@ -1264,7 +1264,7 @@ ItemStack read_item(lua_State* L, int index, IItemDefManager *idef) if (lua_isuserdata(L, index)) { // Convert from LuaItemStack - LuaItemStack *o = LuaItemStack::checkobject(L, index); + LuaItemStack *o = ModApiBase::checkObject(L, index); return o->getItem(); } -- cgit v1.2.3