Fixed Switch Statement

Fixed Switch Statement.
This commit is contained in:
HttrckCldHKS 2014-10-18 10:10:09 -07:00
parent aa963603ed
commit e08e140c3c

View File

@ -155,13 +155,16 @@ int getContinentId(const char *code)
{
case 'A':
{
switch (code[1])
{
case 'F': index = CONTINENT_AFRICA; break;
case 'N': index = CONTINENT_ANTARCTICA; break;
case 'S': index = CONTINENT_ASIA; break;
}
switch (code[1])
{
case 'F': index = CONTINENT_AFRICA; break;
case 'N': index = CONTINENT_ANTARCTICA; break;
case 'S': index = CONTINENT_ASIA; break;
}
break;
}
case 'E': index = CONTINENT_EUROPE; break;
case 'O': index = CONTINENT_OCEANIA; break;
case 'N': index = CONTINENT_NORTH_AMERICA; break;