diff --git a/src/shp_processor.cpp b/src/shp_processor.cpp index 22a853a1..79737fb1 100644 --- a/src/shp_processor.cpp +++ b/src/shp_processor.cpp @@ -153,7 +153,7 @@ void ShpProcessor::read(class LayerDef &layer, uint layerNum) continue; } - boost::asio::post(pool, [&, shape]() { + boost::asio::post(pool, [&, i, shape]() { // process attributes string name; bool hasName = false;