summaryrefslogtreecommitdiff
path: root/games/ufoai/patches/patch-src_common_netpack.c
blob: 262626ce590e033da206b569eea28b0349212b9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-src_common_netpack.c,v 1.1 2015/03/31 15:40:03 joerg Exp $

--- src/common/netpack.c.orig	2015-03-26 15:39:22.000000000 +0000
+++ src/common/netpack.c
@@ -189,9 +189,6 @@ void NET_V_WriteFormat (struct dbuffer *
 			Com_Error(ERR_DROP, "WriteFormat: Unknown type!");
 		}
 	}
-	/* Too many arguments for the given format; too few cause crash above */
-	if (!ap)
-		Com_Error(ERR_DROP, "WriteFormat: Too many arguments!");
 }
 
 /**
@@ -470,9 +467,6 @@ void NET_V_ReadFormat (struct dbuffer *b
 			Com_Error(ERR_DROP, "ReadFormat: Unknown type!");
 		}
 	}
-	/* Too many arguments for the given format; too few cause crash above */
-	if (!ap)
-		Com_Error(ERR_DROP, "ReadFormat: Too many arguments!");
 }
 
 /**