fixed port setting not being loaded from configuration file for client
authorPerttu Ahola <celeron55@gmail.com>
Tue, 12 Apr 2011 14:42:17 +0000 (17:42 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 12 Apr 2011 14:42:17 +0000 (17:42 +0300)
src/main.cpp

index 28697146fe6a5fc9557208367fb87f08fb11fe97..117670366c0c50feb82640ae7e94e930df65b033 100644 (file)
@@ -1704,7 +1704,7 @@ int main(int argc, char *argv[])
        u16 port = 30000;\r
        if(cmd_args.exists("port"))\r
                port = cmd_args.getU16("port");\r
-       else if(cmd_args.exists("port"))\r
+       else if(g_settings.exists("port"))\r
                port = g_settings.getU16("port");\r
        \r
        // Map directory\r