Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > by-pkgid > d9ec3153eb1a2a813edf2481883490d6 > files > 1

freedroidrpg-0.10.3-alt1.1.src.rpm

--- freedroidrpg-0.10.3/src/network.c.orig	2007-11-26 23:00:15 +0300
+++ freedroidrpg-0.10.3/src/network.c	2007-11-26 23:34:38 +0300
@@ -636,6 +636,8 @@ CopyMeToNetworkMe( int PlayerNum )
   int i;
   int WriteIndex=0;
 
+  if (PlayerNum >= MAX_PLAYERS || PlayerNum < 0)
+	  return;
   //--------------------
   // At first we copy this particular player to position 0 within
   // the networking me.