summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mazescene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mazescene.cpp b/mazescene.cpp
index c99aec4..03b4c1c 100644
--- a/mazescene.cpp
+++ b/mazescene.cpp
@@ -174,9 +174,9 @@ void WalkingItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
void WalkingItem::updatePixmap()
{
if (m_walking)
- setPixmap(m_standingPixmap);
- else
setPixmap(m_walkingPixmap);
+ else
+ setPixmap(m_standingPixmap);
}
MazeScene::MazeScene(const QVector<Light> &lights, const char *map, int width, int height)