We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ce573e commit 566cf78Copy full SHA for 566cf78
src/extractor/scripting_environment_lua.cpp
@@ -236,7 +236,7 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
236
237
auto get_location_tag = [](auto &context, const auto &location, const char *key) {
238
if (context.location_dependent_data.empty())
239
- return sol::object(sol::lua_nil);
+ return sol::object(context.state);
240
241
const LocationDependentData::point_t point{location.lon(), location.lat()};
242
if (!boost::geometry::equals(context.last_location_point, point))
0 commit comments