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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user