1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2025-02-20 13:30: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,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)
{