[fc-lang] Fix bug in country map generation
Previously the county map code was using an uninitialized variable and hence was totally failing to populate same-lang-different-territory map.
This commit is contained in:
parent
0f11354877
commit
bb36e67685
|
@ -488,7 +488,7 @@ main (int argc, char **argv)
|
||||||
for (d = c + 1; d < ncountry; d++)
|
for (d = c + 1; d < ncountry; d++)
|
||||||
{
|
{
|
||||||
int j = country[d];
|
int j = country[d];
|
||||||
if (j >= 0 && !strncmp (langs[j], langs[i], l))
|
if (j >= 0 && !strncmp (langs[j], langs[i], lang + 1))
|
||||||
{
|
{
|
||||||
BitSet(map, j);
|
BitSet(map, j);
|
||||||
country[d] = -1;
|
country[d] = -1;
|
||||||
|
|
Loading…
Reference in New Issue