citra-emu
/
citra-canary
Archived
1
0
Fork 0

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.
This commit is contained in:
zhupengfei 2020-05-31 10:46:04 +08:00
parent 76253063a3
commit 4918f86622
No known key found for this signature in database
GPG Key ID: DD129E108BD09378
1 changed files with 1 additions and 3 deletions

View File

@ -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;