Technical support > Feature Requests
Segmentation fault on mission end
(1/1)
atomisirsi:
Everytime I left a mission ufoai segfaulted. With the help of Mattn I was able to resolve that bug :)
--- Code: ---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]++;
}
}
--- End code ---
Navigation
[0] Message Index
Go to full version