mirror of https://github.com/tstellar/bygfoot.git
Refactor start_new_season_league_changes()
This commit is contained in:
parent
19d361fb82
commit
7c1fe79763
|
@ -866,11 +866,10 @@ start_new_season_league_changes(void)
|
||||||
{
|
{
|
||||||
for(j=0;j<lig(i).teams->len;j++)
|
for(j=0;j<lig(i).teams->len;j++)
|
||||||
{
|
{
|
||||||
g_array_index(lig(i).teams, Team, j).clid = lig(i).id;
|
Team *team = &g_array_index(lig(i).teams, Team, j);
|
||||||
for(k=0;k<g_array_index(lig(i).teams, Team, j).players->len;k++)
|
team->clid = lig(i).id;
|
||||||
g_array_index(g_array_index(lig(i).teams, Team, j).players,
|
for(k=0;k<team->players->len;k++)
|
||||||
Player, k).team =
|
g_array_index(team->players, Player, k).team = team;
|
||||||
&g_array_index(lig(i).teams, Team, j);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
league_season_start(&lig(i));
|
league_season_start(&lig(i));
|
||||||
|
|
Loading…
Reference in New Issue