summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-04-04 18:22:02 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-04-04 18:22:02 +0200
commitd8a4c981b3bdd24903efed0623f8661021acab5b (patch)
tree7236ac88786adc810f7416053db2efe0ce4bdbe4 /src/actorspritemanager.cpp
parent3a05c2d4e4f2229516182ebceea880d227b65708 (diff)
downloadmana-d8a4c981b3bdd24903efed0623f8661021acab5b.tar.gz
mana-d8a4c981b3bdd24903efed0623f8661021acab5b.tar.bz2
mana-d8a4c981b3bdd24903efed0623f8661021acab5b.tar.xz
mana-d8a4c981b3bdd24903efed0623f8661021acab5b.zip
Fixed compiler warning because of uninitialized variable
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 2ee80d03..31b6d8f0 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -180,7 +180,7 @@ Being *ActorSpriteManager::findBeingByPixel(int x, int y) const
const int halfTileHeight = map->getTileHeight() / 2;
Being *closest = 0;
- int closestDist;
+ int closestDist = 0;
for_actors
{