summaryrefslogtreecommitdiff
path: root/src/net/manaserv
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-04-27 22:42:52 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2011-04-27 22:42:52 +0200
commit79ecbe05884988f791c27190797a005f827369de (patch)
tree12831559cbb6826801d6b0b9c6ef8d08c0e9d548 /src/net/manaserv
parentdc01deabad46e2d188056cfbe9c6f246a46dc60e (diff)
downloadmana-79ecbe05884988f791c27190797a005f827369de.tar.gz
mana-79ecbe05884988f791c27190797a005f827369de.tar.bz2
mana-79ecbe05884988f791c27190797a005f827369de.tar.xz
mana-79ecbe05884988f791c27190797a005f827369de.zip
Avoiding compiler warnings about possible uninitialized variables
Reviewed-by: Bertram
Diffstat (limited to 'src/net/manaserv')
-rw-r--r--src/net/manaserv/beinghandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/manaserv/beinghandler.cpp b/src/net/manaserv/beinghandler.cpp
index f8cefecf..4c91a36e 100644
--- a/src/net/manaserv/beinghandler.cpp
+++ b/src/net/manaserv/beinghandler.cpp
@@ -188,7 +188,7 @@ void BeingHandler::handleBeingsMoveMessage(Net::MessageIn &msg)
int id = msg.readInt16();
int flags = msg.readInt8();
Being *being = actorSpriteManager->findBeing(id);
- int sx, sy, dx, dy, speed = 0;
+ int sx = 0, sy = 0, dx = 0, dy = 0, speed = 0;
if ((!flags & (MOVING_POSITION | MOVING_DESTINATION)))
continue;