index b8d7c8040b1cd58cff7f22eb5f45b7d77b550c08..67b50dd928a87af7ac0e0ac768a39f61e64da93c 100644 (file)
while RawPos < P^.dataLength do
begin
Len := e_Raw_Read_Word(B);
+ if Len = 0 then break;
+
MID := e_Raw_Read_Byte(B);
case MID of
NET_MSG_CHAT: MC_RECV_Chat(B);
while RawPos < P^.dataLength do
begin
Len := e_Raw_Read_Word(B);
+ if Len = 0 then break;
+
MID := e_Raw_Read_Byte(B);
case MID of
NET_MSG_GEVENT: MC_RECV_GameEvent(B);
while RawPos < P^.dataLength do
begin
Len := e_Raw_Read_Word(B);
+ if Len = 0 then break;
+
MID := e_Raw_Read_Byte(B);
case MID of
NET_MSG_INFO: MH_RECV_Info(S, B);