From d17557c02ce23933c94c052d148213c2b54c4c8e Mon Sep 17 00:00:00 2001 From: Subv Date: Fri, 10 Apr 2020 18:35:53 -0500 Subject: [PATCH] Warnings/Network: Initialize the members of Room::RoomImpl in the order they are defined. --- src/network/room.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/room.cpp b/src/network/room.cpp index e1b6b77d3..342a2541b 100644 --- a/src/network/room.cpp +++ b/src/network/room.cpp @@ -53,7 +53,7 @@ public: mutable std::mutex ban_list_mutex; ///< Mutex for the ban lists RoomImpl() - : random_gen(std::random_device()()), NintendoOUI{0x00, 0x1F, 0x32, 0x00, 0x00, 0x00} {} + : NintendoOUI{0x00, 0x1F, 0x32, 0x00, 0x00, 0x00}, random_gen(std::random_device()()) {} /// Thread that receives and dispatches network packets std::unique_ptr room_thread;