修复传参为空导致的release崩溃问题
This commit is contained in:
4
3rdparty/sol/stack_get_unqualified.hpp
vendored
4
3rdparty/sol/stack_get_unqualified.hpp
vendored
@@ -897,7 +897,9 @@ namespace sol { namespace stack {
|
||||
tracking.use(1);
|
||||
void* rawdata = detail::align_usertype_pointer(memory);
|
||||
void** pudata = static_cast<void**>(rawdata);
|
||||
void* udata = *pudata;
|
||||
void* udata = nullptr;
|
||||
if (pudata != nullptr)
|
||||
udata = *pudata;
|
||||
return get_no_lua_nil_from(L, udata, index, tracking);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user