diff options
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r-- | src/gui/minimap.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 1682b972..388a032a 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -190,15 +190,12 @@ void Minimap::draw(gcn::Graphics *graphics) drawImage(mMapImage, mapOriginX, mapOriginY); } - const ActorSprites &actors = actorSpriteManager->getAll(); - - for (auto it = actors.begin(), it_end = actors.end(); - it != it_end; it++) + for (auto actor : actorSpriteManager->getAll()) { - if ((*it)->getType() == ActorSprite::FLOOR_ITEM) + if (actor->getType() == ActorSprite::FLOOR_ITEM) continue; - const Being *being = static_cast<Being*>(*it); + const Being *being = static_cast<Being*>(actor); if (!being->isAlive()) continue; |