From dde6e5de43ed2d50c02022042f68fa866779c15a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Jul 2013 01:25:29 +0300 Subject: improve size() usage in botcheckerwindow. --- src/gui/botcheckerwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/botcheckerwindow.cpp b/src/gui/botcheckerwindow.cpp index 97e01b4b2..a18669da0 100644 --- a/src/gui/botcheckerwindow.cpp +++ b/src/gui/botcheckerwindow.cpp @@ -124,8 +124,9 @@ public: } const unsigned int curTime = cur_time; + const unsigned int sz = mPlayers.size(); // set up widgets - for (unsigned int r = 0; r < mPlayers.size(); ++r) + for (unsigned int r = 0; r < sz; ++r) { if (!mPlayers.at(r)) continue; -- cgit v1.2.3-70-g09d2