diff options
Diffstat (limited to 'src/network/room.cpp')
| -rw-r--r-- | src/network/room.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/room.cpp b/src/network/room.cpp index 8b7915bb7..fbbaf8b93 100644 --- a/src/network/room.cpp +++ b/src/network/room.cpp | |||
| @@ -19,7 +19,7 @@ static constexpr u32 MaxConcurrentConnections = 10; | |||
| 19 | class Room::RoomImpl { | 19 | class Room::RoomImpl { |
| 20 | public: | 20 | public: |
| 21 | // This MAC address is used to generate a 'Nintendo' like Mac address. | 21 | // This MAC address is used to generate a 'Nintendo' like Mac address. |
| 22 | const MacAddress NintendoOUI = {0x00, 0x1F, 0x32, 0x00, 0x00, 0x00}; | 22 | const MacAddress NintendoOUI; |
| 23 | std::mt19937 random_gen; ///< Random number generator. Used for GenerateMacAddress | 23 | std::mt19937 random_gen; ///< Random number generator. Used for GenerateMacAddress |
| 24 | 24 | ||
| 25 | ENetHost* server = nullptr; ///< Network interface. | 25 | ENetHost* server = nullptr; ///< Network interface. |
| @@ -36,7 +36,8 @@ public: | |||
| 36 | using MemberList = std::vector<Member>; | 36 | using MemberList = std::vector<Member>; |
| 37 | MemberList members; ///< Information about the members of this room. | 37 | MemberList members; ///< Information about the members of this room. |
| 38 | 38 | ||
| 39 | RoomImpl() : random_gen(std::random_device()()) {} | 39 | RoomImpl() |
| 40 | : random_gen(std::random_device()()), NintendoOUI{0x00, 0x1F, 0x32, 0x00, 0x00, 0x00} {} | ||
| 40 | 41 | ||
| 41 | /// Thread that receives and dispatches network packets | 42 | /// Thread that receives and dispatches network packets |
| 42 | std::unique_ptr<std::thread> room_thread; | 43 | std::unique_ptr<std::thread> room_thread; |