Fix a few property warnings on Globals access

Hand-picked from 515f92d03b.
This commit is contained in:
Rémi Verschelde
2017-05-26 18:46:59 +02:00
parent 9b1ee4cd66
commit fec8e2549c
3 changed files with 6 additions and 3 deletions

View File

@@ -412,7 +412,7 @@ void EditorSettings::setup_network() {
IP::get_singleton()->get_local_addresses(&local_ip);
String lip;
String hint;
String current = get("network/debug_host");
String current = has("network/debug_host") ? get("network/debug_host") : "";
int port = has("network/debug_port") ? (int)get("network/debug_port") : 6007;
for (List<IP_Address>::Element *E = local_ip.front(); E; E = E->next()) {