Initialize empty Lua object

This commit is contained in:
Desone Burns II 2020-11-30 14:13:18 -07:00
parent 1ce573ef35
commit 566cf785f5

View File

@ -236,7 +236,7 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
auto get_location_tag = [](auto &context, const auto &location, const char *key) {
if (context.location_dependent_data.empty())
return sol::object(sol::lua_nil);
return sol::object(context.state);
const LocationDependentData::point_t point{location.lon(), location.lat()};
if (!boost::geometry::equals(context.last_location_point, point))