diff --git a/rogueviz/sag.cpp b/rogueviz/sag.cpp index 7ca69cc0..0e699666 100644 --- a/rogueviz/sag.cpp +++ b/rogueviz/sag.cpp @@ -44,7 +44,7 @@ namespace sag { vector sagcells; /** table of distances between SAG cells */ - vector> sagdist; + vector> sagdist; /** what node is on sagcells[i] */ vector sagnode; @@ -141,7 +141,7 @@ namespace sag { } max_sag_dist = 0; - for(auto& d: sagdist) for(auto& x: d) max_sag_dist = max(max_sag_dist, x); + for(auto& d: sagdist) for(auto& x: d) max_sag_dist = max(max_sag_dist, x); max_sag_dist++; }