diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-19 14:37:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:25 +0300 |
commit | 9fcbaf5b855efa667667e6a9be69a2140d78eaef (patch) | |
tree | 1cdcbeac9bd18b6eee8864128d798b5e807e6fdb | |
parent | 36c93077464d677b96f7e5e76749aa55d8ab88ad (diff) | |
download | manaverse-9fcbaf5b855efa667667e6a9be69a2140d78eaef.tar.gz manaverse-9fcbaf5b855efa667667e6a9be69a2140d78eaef.tar.bz2 manaverse-9fcbaf5b855efa667667e6a9be69a2140d78eaef.tar.xz manaverse-9fcbaf5b855efa667667e6a9be69a2140d78eaef.zip |
fix casting in viewport.
-rw-r--r-- | src/gui/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index aa839fc20..96f34062a 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -246,7 +246,7 @@ void Viewport::draw(gcn::Graphics *gcnGraphics) // Draw player names, speech, and emotion sprite as needed const ActorSprites &actors = actorSpriteManager->getAll(); - FOR_EACH (ActorSpritesConstIterator, it, actors) + FOR_EACH (ActorSpritesIterator, it, actors) { if ((*it)->getType() == ActorSprite::FLOOR_ITEM) continue; @@ -326,7 +326,7 @@ void Viewport::_drawDebugPath(Graphics *const graphics) const ActorSprites &actors = actorSpriteManager->getAll(); FOR_EACH (ActorSpritesConstIterator, it, actors) { - const Being *const being = dynamic_cast<Being*>(*it); + const Being *const being = dynamic_cast<const Being*>(*it); if (being && being != player_node) { const Path &beingPath = being->getPath(); |