diff --git a/tools/mapjson/mapjson.cpp b/tools/mapjson/mapjson.cpp index c8b11a7694..30de674266 100644 --- a/tools/mapjson/mapjson.cpp +++ b/tools/mapjson/mapjson.cpp @@ -739,7 +739,7 @@ int main(int argc, char *argv[]) { vector filepaths; const int firstMapFileArg = 3; const int lastMapFileArg = argc - 2; - for (int i = firstMapFileArg; i < lastMapFileArg; i++) { + for (int i = firstMapFileArg; i <= lastMapFileArg; i++) { filepaths.push_back(argv[i]); } string output_file(argv[argc - 1]);