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': case 'A':
{ {
switch (code[1]) switch (code[1])
{ {
case 'F': index = CONTINENT_AFRICA; break; case 'F': index = CONTINENT_AFRICA; break;
case 'N': index = CONTINENT_ANTARCTICA; break; case 'N': index = CONTINENT_ANTARCTICA; break;
case 'S': index = CONTINENT_ASIA; break; case 'S': index = CONTINENT_ASIA; break;
} }
break;
} }
case 'E': index = CONTINENT_EUROPE; break; case 'E': index = CONTINENT_EUROPE; break;
case 'O': index = CONTINENT_OCEANIA; break; case 'O': index = CONTINENT_OCEANIA; break;
case 'N': index = CONTINENT_NORTH_AMERICA; break; case 'N': index = CONTINENT_NORTH_AMERICA; break;