Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10307) Fwd: civserver crashed: http://pubserver.freeci
Home

[Freeciv-Dev] (PR#10307) Fwd: civserver crashed: http://pubserver.freeci

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10307) Fwd: civserver crashed: http://pubserver.freeciv.org/games/335702 [freeciv@xxxxxxxxxxxxxxxxxxxxx]
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Fri, 24 Sep 2004 14:06:57 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10307 >

Here's a patch
Index: packets.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/packets.c,v
retrieving revision 1.219.2.5
diff -u -r1.219.2.5 packets.c
--- packets.c   20 Aug 2004 20:00:25 -0000      1.219.2.5
+++ packets.c   24 Sep 2004 21:06:09 -0000
@@ -560,7 +560,7 @@
   dio_put_uint8(&dout, packet->action_type);
   dio_put_uint16(&dout, packet->diplomat_id);
   dio_put_uint16(&dout, packet->target_id);
-  dio_put_uint16(&dout, packet->value);
+  dio_put_sint16(&dout, packet->value);
 
   SEND_PACKET_END;
 }
@@ -576,7 +576,7 @@
   dio_get_uint8(&din, &preq->action_type);
   dio_get_uint16(&din, &preq->diplomat_id);
   dio_get_uint16(&din, &preq->target_id);
-  dio_get_uint16(&din, &preq->value);
+  dio_get_sint16(&din, &preq->value);
 
   RECEIVE_PACKET_END(preq);
 }

[Prev in Thread] Current Thread [Next in Thread]