From 418d6d7074ecf988a9a34c39f2085b3c18e96465 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 6 Dec 2010 16:29:09 +0200 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D1=8B=20=D0=BE=D0=BF=D0=B5=D1=87=D0=B0=D1=82=D0=BA=D0=B8?= =?utf8?q?=20=D0=B8=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B0=20=D0=B8=D0=BD=D0=B4=D0=B5=D0=BD=D1=82=D0=B0=D1=86?= =?utf8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/stargazer/user.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/projects/stargazer/user.cpp b/projects/stargazer/user.cpp index 2ac865bd..2db51411 100644 --- a/projects/stargazer/user.cpp +++ b/projects/stargazer/user.cpp @@ -856,11 +856,11 @@ IP_DIR_PAIR idp(ip, dir); map::iterator lb; lb = traffStat.lower_bound(idp); -if (lb == traffStat.end() || lb.first != idp) +if (lb == traffStat.end() || lb->first != idp) { traffStat.insert(lb, - pair(idp, - STAT_NODE(len, 0, cost))); + pair(idp, + STAT_NODE(len, 0, cost))); } else { @@ -946,11 +946,11 @@ IP_DIR_PAIR idp(ip, dir); map::iterator lb; lb = traffStat.lower_bound(idp); -if (lb == traffStat->end() || lb->first != idp) +if (lb == traffStat.end() || lb->first != idp) { - traffStat->insert(lb, - pair(idp, - STAT_NODE(0, len, cost))); + traffStat.insert(lb, + pair(idp, + STAT_NODE(0, len, cost))); } else { -- 2.44.2