summaryrefslogtreecommitdiff
path: root/src/net/protocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/protocol.cpp')
-rw-r--r--src/net/protocol.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp
index b9a9c938..6a519a0f 100644
--- a/src/net/protocol.cpp
+++ b/src/net/protocol.cpp
@@ -114,9 +114,8 @@ unsigned short get_x(const char *data) {
unsigned short get_y(const char *data) {
short temp;
- if(!data)error("Corrupted data");
+ if (!data) throw "Corrupted data";
temp = MAKEWORD(data[2] & 0x00f0, data[1] & 0x003f);
- if(!temp)error("Corrupted data");
temp >>= 4;
return temp;
}