Skip to content

Commit 566cf78

Browse files
committed
Initialize empty Lua object
1 parent 1ce573e commit 566cf78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extractor/scripting_environment_lua.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
236236

237237
auto get_location_tag = [](auto &context, const auto &location, const char *key) {
238238
if (context.location_dependent_data.empty())
239-
return sol::object(sol::lua_nil);
239+
return sol::object(context.state);
240240

241241
const LocationDependentData::point_t point{location.lon(), location.lat()};
242242
if (!boost::geometry::equals(context.last_location_point, point))

0 commit comments

Comments
 (0)