diff --git a/src/naveditor/GameUtils.cpp b/src/naveditor/GameUtils.cpp index 297e04a8..4011cf65 100644 --- a/src/naveditor/GameUtils.cpp +++ b/src/naveditor/GameUtils.cpp @@ -142,7 +142,7 @@ void buildLinkTable(dtNavMesh* mesh, LinkTableData& data) { auto l = *nlabels.begin(); poly.disjointSetId = (unsigned short)l; - for (auto nl : nlabels) + for (const int nl : nlabels) data.set_union(l, nl); } nlabels.clear();