1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Don't let null password cause a crash on initial launch

This commit is contained in:
Michał Janiszewski
2016-05-27 21:38:23 +02:00
parent d9062f1f07
commit 4ba1c17b0d

View File

@@ -1090,7 +1090,7 @@ void Network::KickPlayer(int playerId)
void Network::SetPassword(const char* password)
{
Network::password = password;
Network::password = password == nullptr ? "" : password;
}
void Network::ShutdownClient()