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