diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-25 13:45:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-25 13:45:49 +0300 |
commit | 5184d99bdc319271ee35046640478ab76d3754cc (patch) | |
tree | bbca91917664eb202723df93de41d5e9107c51f0 /src/net/tmwa/network.cpp | |
parent | 5ed1a97e5e9d48169d274230e7dd194dc6310edc (diff) | |
download | plus-5184d99bdc319271ee35046640478ab76d3754cc.tar.gz plus-5184d99bdc319271ee35046640478ab76d3754cc.tar.bz2 plus-5184d99bdc319271ee35046640478ab76d3754cc.tar.xz plus-5184d99bdc319271ee35046640478ab76d3754cc.zip |
add missing checks.
Diffstat (limited to 'src/net/tmwa/network.cpp')
-rw-r--r-- | src/net/tmwa/network.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp index 8fe89ac52..9d4c60e0a 100644 --- a/src/net/tmwa/network.cpp +++ b/src/net/tmwa/network.cpp @@ -149,7 +149,7 @@ void Network::dispatchMessages() len = 10; else if (msgId == SMSG_UPDATE_HOST2) len = -1; - else if (msgId >= 0 && msgId < messagesSize) + else if (msgId >= 0 && msgId < packet_lengths_size) len = packet_lengths[msgId]; if (len == -1) |