summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 14:37:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:25 +0300
commit9fcbaf5b855efa667667e6a9be69a2140d78eaef (patch)
tree1cdcbeac9bd18b6eee8864128d798b5e807e6fdb /src
parent36c93077464d677b96f7e5e76749aa55d8ab88ad (diff)
downloadmanaverse-9fcbaf5b855efa667667e6a9be69a2140d78eaef.tar.gz
manaverse-9fcbaf5b855efa667667e6a9be69a2140d78eaef.tar.bz2
manaverse-9fcbaf5b855efa667667e6a9be69a2140d78eaef.tar.xz
manaverse-9fcbaf5b855efa667667e6a9be69a2140d78eaef.zip
fix casting in viewport.
Diffstat (limited to 'src')
-rw-r--r--src/gui/viewport.cpp4
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();