summaryrefslogtreecommitdiff
path: root/games/xfrisk/patches/patch-ac
blob: c3f54e4a19be6e98436cc5c16dd91a2d5ee94d1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ac,v 1.1 2009/05/23 15:02:42 dholland Exp $

This patch fixes some stuff that breaks if you compile with assertions
and debugging on.

upstream: AFAIK upstream is currently comatose/dead

--- viewStats.c~	2000-01-16 13:47:02.000000000 -0500
+++ viewStats.c	2007-11-02 14:58:28.000000000 -0400
@@ -632,7 +632,7 @@
       break;
   
   /* There MUST be a slot */
-  D_Assert(iSlot >= MAX_PLAYERS, "Whoa, dude!  Bogus player somewhere?!");
+  D_Assert(iSlot < MAX_PLAYERS, "Whoa, dude!  Bogus player somewhere?!");
   
   /* Actually dump the data to the slot */
   STAT_RenderSlot(iSlot, iPlayer);