diff --git a/geostat.cpp b/geostat.cpp index d24f7ea..0a4533b 100644 --- a/geostat.cpp +++ b/geostat.cpp @@ -123,7 +123,8 @@ int find_streak(const std::multimap& cc, std::tm& sta start = cur_start_tm; } cur_str = 1; - cur_tm = cur_start_tm = *std::localtime(&i.first); + max_str = 1; + cur_tm = cur_start_tm = start = *std::localtime(&i.first); } return max_str; }