summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nwm/nwm_uds.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/nwm/nwm_uds.cpp b/src/core/hle/service/nwm/nwm_uds.cpp
index da7c2bb0d..1d5b298a2 100644
--- a/src/core/hle/service/nwm/nwm_uds.cpp
+++ b/src/core/hle/service/nwm/nwm_uds.cpp
@@ -247,6 +247,9 @@ static void BeginHostingNetwork(Interface* self) {
247 247
248 Memory::ReadBlock(network_info_address, &network_info, sizeof(NetworkInfo)); 248 Memory::ReadBlock(network_info_address, &network_info, sizeof(NetworkInfo));
249 249
250 // The real UDS module throws a fatal error if this assert fails.
251 ASSERT_MSG(network_info.max_nodes > 1, "Trying to host a network of only one member.");
252
250 connection_status.status = static_cast<u32>(NetworkStatus::ConnectedAsHost); 253 connection_status.status = static_cast<u32>(NetworkStatus::ConnectedAsHost);
251 connection_status.max_nodes = network_info.max_nodes; 254 connection_status.max_nodes = network_info.max_nodes;
252 255