Codechange: [Network] Make company state password std::string

This commit is contained in:
rubidium42
2021-05-02 08:27:06 +02:00
committed by rubidium42
parent 1da0ba95b2
commit 98283116fa
4 changed files with 18 additions and 18 deletions

View File

@@ -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];