Skip to content

Commit ca68518

Browse files
committed
Remove context from get_nodes call
1 parent f6065de commit ca68518

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
@@ -259,7 +259,7 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
259259
"version",
260260
&osmium::Way::version,
261261
"get_nodes",
262-
[&context](const osmium::Way &way) { return sol::as_table(&way.nodes()); },
262+
[](const osmium::Way &way) { return sol::as_table(&way.nodes()); },
263263
"get_location_tag",
264264
[&context, &get_location_tag](const osmium::Way &way, const char *key) {
265265
// HEURISTIC: use a single node (last) of the way to localize the way

0 commit comments

Comments
 (0)