From 42ce60575f345d47435f6961d2639a5805fe3ce2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 16:45:48 +0300 Subject: add missing break in messageout. --- src/net/eathena/messageout.cpp | 1 + src/net/tmwa/messageout.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'src') 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(-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(-1); + break; } data[2] |= direction; PacketCounters::incOutBytes(3); -- cgit v1.2.3-60-g2f50