summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 16:45:48 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:21 +0300
commit42ce60575f345d47435f6961d2639a5805fe3ce2 (patch)
treead1fc6ee473e7b319d63f280d5dd93eac200959f /src
parent008bf570587fb34382cca58e8d3fd909c9a621f8 (diff)
downloadmv-42ce60575f345d47435f6961d2639a5805fe3ce2.tar.gz
mv-42ce60575f345d47435f6961d2639a5805fe3ce2.tar.bz2
mv-42ce60575f345d47435f6961d2639a5805fe3ce2.tar.xz
mv-42ce60575f345d47435f6961d2639a5805fe3ce2.zip
add missing break in messageout.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/messageout.cpp1
-rw-r--r--src/net/tmwa/messageout.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/net/eathena/messageout.cpp b/src/net/eathena/messageout.cpp
index 1ca2311ff..2f2f5b58a 100644
--- a/src/net/eathena/messageout.cpp
+++ b/src/net/eathena/messageout.cpp
@@ -137,6 +137,7 @@ void MessageOut::writeCoordinates(const uint16_t x,
default:
// OOPSIE! Impossible or unknown
direction = static_cast<unsigned char>(-1);
+ break;
}
data[2] |= direction;
PacketCounters::incOutBytes(3);
diff --git a/src/net/tmwa/messageout.cpp b/src/net/tmwa/messageout.cpp
index 7a96497ee..2ec81f99c 100644
--- a/src/net/tmwa/messageout.cpp
+++ b/src/net/tmwa/messageout.cpp
@@ -139,6 +139,7 @@ void MessageOut::writeCoordinates(const uint16_t x,
default:
// OOPSIE! Impossible or unknown
direction = static_cast<unsigned char>(-1);
+ break;
}
data[2] |= direction;
PacketCounters::incOutBytes(3);