project-navigation
Personal tools

Author Topic: Segmentation fault on mission end  (Read 5169 times)

atomisirsi

  • Guest
Segmentation fault on mission end
« on: March 07, 2006, 06:54:59 pm »
Everytime I left a mission ufoai segfaulted. With the help of Mattn I was able to resolve that bug :)

Code: [Select]
Index: src/client/cl_campaign.c
===================================================================
--- src/client/cl_campaign.c (Revision 189)
+++ src/client/cl_campaign.c (Arbeitskopie)
@@ -1634,7 +1634,7 @@
  character_t* chr;
  int i, j;
 
- for ( i = 0; i < numWholeTeam; i++ )
+ for ( i = 0; i < numOnTeam; i++ )
  {
  le = cl.teamList[i];
 
@@ -1648,7 +1648,7 @@
  assert( chr );
 
  // FIXME:
- for ( j = 0; i < SKILL_NUM_TYPES; j++ )
+ for ( j = 0; j < SKILL_NUM_TYPES; j++ )
  chr->skills[j]++;
  }
  }