summaryrefslogtreecommitdiff
path: root/src/gui/specialswindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/specialswindow.cpp')
-rw-r--r--src/gui/specialswindow.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/specialswindow.cpp b/src/gui/specialswindow.cpp
index 4dd53cee1..fd9f5ab5a 100644
--- a/src/gui/specialswindow.cpp
+++ b/src/gui/specialswindow.cpp
@@ -134,8 +134,8 @@ void SpecialsWindow::draw(gcn::Graphics *graphics)
unsigned int found = 0; // number of entries in specialData
// which match mEntries
- for (std::map<int, Special>::const_iterator i = specialData.begin();
- i != specialData.end(); ++i)
+ for (std::map<int, Special>::const_iterator i = specialData.begin(),
+ i_end = specialData.end(); i != i_end; ++i)
{
std::map<int, SpecialEntry *>::const_iterator
e = mEntries.find(i->first);
@@ -167,9 +167,8 @@ void SpecialsWindow::rebuild(const std::map<int, Special> &specialData)
mEntries.clear();
int vPos = 0; //vertical position of next placed element
- for (std::map<int, Special>::const_iterator i = specialData.begin();
- i != specialData.end();
- ++i)
+ for (std::map<int, Special>::const_iterator i = specialData.begin(),
+ i_end = specialData.end(); i != i_end; ++i)
{
logger->log("Updating special GUI for %d", i->first);