summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-02 08:27:06 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-14 23:22:04 +0200
commit98283116fac58053ebd282772b0311a0b417cef7 (patch)
tree304ecdf4925f2d7e5bd49eb7906563df0564a45a /src/console_cmds.cpp
parent1da0ba95b2ca102b49a816b46ba7999ddc6a2858 (diff)
downloadopenttd-98283116fac58053ebd282772b0311a0b417cef7.tar.xz
Codechange: [Network] Make company state password std::string
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 0756f7266..82638a5cb 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1635,7 +1635,7 @@ DEF_CONSOLE_CMD(ConCompanies)
if (c->is_ai) {
password_state = "AI";
} else if (_network_server) {
- password_state = StrEmpty(_network_company_states[c->index].password) ? "unprotected" : "protected";
+ password_state = _network_company_states[c->index].password.empty() ? "unprotected" : "protected";
}
char colour[512];