From 4918f86622afb4eba6af3c6093f00b39ab0fc6d7 Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Sun, 31 May 2020 10:46:04 +0800 Subject: [PATCH] service/nwm_uds: Ensure consistency regarding node IDs Previously, when connecting, the host was using the incorrect node_id to update `node_info`. This is an attempt to fix tywald's problem with MH, reported on Discord a while ago. I'm not sure if this would actually fix that though. --- src/core/hle/service/nwm/nwm_uds.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/hle/service/nwm/nwm_uds.cpp b/src/core/hle/service/nwm/nwm_uds.cpp index 831f6c87ed..5e11d63048 100644 --- a/src/core/hle/service/nwm/nwm_uds.cpp +++ b/src/core/hle/service/nwm/nwm_uds.cpp @@ -226,9 +226,7 @@ void NWM_UDS::HandleEAPoLPacket(const Network::WifiPacket& packet) { connection_status.nodes[node_id - 1] = node.network_node_id; connection_status.total_nodes++; - u8 current_nodes = network_info.total_nodes; - node_info[current_nodes] = node; - + node_info[node_id - 1] = node; network_info.total_nodes++; node_map[packet.transmitter_address].node_id = node.network_node_id;