mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-25 10:52:48 -06:00
input_common: udp: Avoid crash when trying to map motion before client is ready
This commit is contained in:
parent
56e5d99684
commit
eae0570a1c
1 changed files with 1 additions and 0 deletions
|
@ -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