diff options
| author | 2023-10-15 02:11:00 -0600 | |
|---|---|---|
| committer | 2023-10-15 02:13:51 -0600 | |
| commit | eae0570a1cae446838f58c7e8c2d2ae6e998811b (patch) | |
| tree | 730210864ab2926cafd7d84f3be5c987cb913348 /src | |
| parent | Improvement in Directory Path Detection for Shortcuts (#11749) (diff) | |
| download | yuzu-eae0570a1cae446838f58c7e8c2d2ae6e998811b.tar.gz yuzu-eae0570a1cae446838f58c7e8c2d2ae6e998811b.tar.xz yuzu-eae0570a1cae446838f58c7e8c2d2ae6e998811b.zip | |
input_common: udp: Avoid crash when trying to map motion before client is ready
Diffstat (limited to 'src')
| -rw-r--r-- | src/input_common/drivers/udp_client.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input_common/drivers/udp_client.cpp b/src/input_common/drivers/udp_client.cpp index 808b21069..77db60e92 100644 --- a/src/input_common/drivers/udp_client.cpp +++ b/src/input_common/drivers/udp_client.cpp | |||
| @@ -338,6 +338,7 @@ void UDPClient::StartCommunication(std::size_t client, const std::string& host, | |||
| 338 | for (std::size_t index = 0; index < PADS_PER_CLIENT; ++index) { | 338 | for (std::size_t index = 0; index < PADS_PER_CLIENT; ++index) { |
| 339 | const PadIdentifier identifier = GetPadIdentifier(client * PADS_PER_CLIENT + index); | 339 | const PadIdentifier identifier = GetPadIdentifier(client * PADS_PER_CLIENT + index); |
| 340 | PreSetController(identifier); | 340 | PreSetController(identifier); |
| 341 | PreSetMotion(identifier, 0); | ||
| 341 | } | 342 | } |
| 342 | } | 343 | } |
| 343 | 344 | ||