@ -72,8 +72,7 @@ struct BuildingInfo {
if (!Lua::SafeCall(out, L, 4, 1))
return false;
auto bld =
static_cast<df::building *>(LuaWrapper::get_object_ref(L, -1));
auto bld = Lua::CheckDFObject<df::building>(L, -1);
lua_pop(L, 1);
if (!bld)