Fix all uninitialized variable warnings (C26495)

This commit is contained in:
Pokechu22
2021-09-03 21:43:19 -07:00
parent 525e6b2194
commit 78bfd25964
111 changed files with 638 additions and 651 deletions

View File

@ -23,11 +23,11 @@ struct NetPlaySession
std::string game_id;
std::string version;
int player_count;
int port;
int player_count = 0;
int port = 0;
bool has_password;
bool in_game;
bool has_password = false;
bool in_game = false;
bool EncryptID(std::string_view password);
std::optional<std::string> DecryptID(std::string_view password) const;