mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 17:12:45 +00:00
Merge pull request #11794 from german77/linemot
input_common: udp: Avoid crash when trying to map motion before client is ready
This commit is contained in:
commit
9e2ebb24df
|
@ -338,6 +338,7 @@ void UDPClient::StartCommunication(std::size_t client, const std::string& host,
|
||||||
for (std::size_t index = 0; index < PADS_PER_CLIENT; ++index) {
|
for (std::size_t index = 0; index < PADS_PER_CLIENT; ++index) {
|
||||||
const PadIdentifier identifier = GetPadIdentifier(client * PADS_PER_CLIENT + index);
|
const PadIdentifier identifier = GetPadIdentifier(client * PADS_PER_CLIENT + index);
|
||||||
PreSetController(identifier);
|
PreSetController(identifier);
|
||||||
|
PreSetMotion(identifier, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue