1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2025-02-22 14:27:41 +01:00

Multiple tables fix.

This commit is contained in:
gyboth 2008-11-26 19:27:00 +00:00
parent b8a09f6d6d
commit 9f5d810e40

View File

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