summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar german772023-10-15 02:11:00 -0600
committerGravatar german772023-10-15 02:13:51 -0600
commiteae0570a1cae446838f58c7e8c2d2ae6e998811b (patch)
tree730210864ab2926cafd7d84f3be5c987cb913348 /src
parentImprovement in Directory Path Detection for Shortcuts (#11749) (diff)
downloadyuzu-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.cpp1
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