Merge pull request #9930 from JosJuice/netplay-designated-initializer

NetPlayClient: Remove a designated initializer
This commit is contained in:
Léo Lam 2021-07-21 10:45:34 +02:00 committed by GitHub
commit 3e73a4fced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2534,7 +2534,8 @@ PadDetails GetPadDetails(int pad_num)
{
std::lock_guard lk(crit_netplay_client);
PadDetails res{.local_pad = 4};
PadDetails res{};
res.local_pad = 4;
if (!netplay_client)
return res;