Remove context from get_nodes call

This commit is contained in:
Desone Burns II 2020-11-23 13:24:44 -07:00
parent f6065de494
commit ca68518763

View File

@ -259,7 +259,7 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
"version",
&osmium::Way::version,
"get_nodes",
[&context](const osmium::Way &way) { return sol::as_table(&way.nodes()); },
[](const osmium::Way &way) { return sol::as_table(&way.nodes()); },
"get_location_tag",
[&context, &get_location_tag](const osmium::Way &way, const char *key) {
// HEURISTIC: use a single node (last) of the way to localize the way