summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/specialswindow.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gui/specialswindow.cpp b/src/gui/specialswindow.cpp
index d96b5805..a163562b 100644
--- a/src/gui/specialswindow.cpp
+++ b/src/gui/specialswindow.cpp
@@ -160,14 +160,8 @@ void SpecialsWindow::draw(gcn::Graphics *graphics)
void SpecialsWindow::rebuild(const std::map<int, Special> &specialData)
{
- // remove current entries so they don't get drawn underneath
- for (std::map<int, SpecialEntry *>::const_iterator it = mEntries.begin();
- it != mEntries.end(); ++it)
- {
- remove(it->second);
- }
-
- make_dtor(mEntries);
+ delete_all(mEntries);
+
mEntries.clear();
int vPos = 0; //vertical position of next placed element