mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-01-31 07:54:50 +01:00
Multiple tables fix.
This commit is contained in:
parent
5990782edd
commit
5c6a18ec2f
@ -440,6 +440,9 @@ cup_load_choose_team_from_league(Cup *cup, const League *league,
|
|||||||
Table *table;
|
Table *table;
|
||||||
|
|
||||||
number_of_teams = 0;
|
number_of_teams = 0;
|
||||||
|
if(league->tables->len == 0)
|
||||||
|
table = &g_array_index(league->tables, Table, 0);
|
||||||
|
else
|
||||||
table = &g_array_index(league->tables, Table, ct->from_table);
|
table = &g_array_index(league->tables, Table, ct->from_table);
|
||||||
|
|
||||||
if(ct->number_of_teams == -1)
|
if(ct->number_of_teams == -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user