1
1
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:
gyboth 2008-11-26 19:27:00 +00:00
parent 5990782edd
commit 5c6a18ec2f

View File

@ -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)
{