From e08e140c3c69ae0d2d8049336831b1f7c32efcc9 Mon Sep 17 00:00:00 2001 From: HttrckCldHKS Date: Sat, 18 Oct 2014 10:10:09 -0700 Subject: [PATCH] Fixed Switch Statement Fixed Switch Statement. --- dlls/geoip/geoip_util.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/dlls/geoip/geoip_util.cpp b/dlls/geoip/geoip_util.cpp index 67b1b84f..aecdb864 100644 --- a/dlls/geoip/geoip_util.cpp +++ b/dlls/geoip/geoip_util.cpp @@ -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;