From 806dd2ec3cdb39c8ae528b65f93984ed66496709 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 15 Jan 2005 14:03:04 +0000 Subject: Fixing crash on death. Death handling could still be improved though. --- src/net/protocol.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/net') 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; } -- cgit v1.2.3-70-g09d2