Skip to content

Commit c5aa3cd

Browse files
authored
fix(network): Fix missing value initialization of LANGameInfo::m_isDirectConnect (#1836)
1 parent 38abe9e commit c5aa3cd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Core/GameEngine/Source/GameNetwork/LANAPIhandlers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ void LANAPI::handleRequestLocations( LANMessage *msg, UnsignedInt senderIP )
6565
strlcpy(reply.GameInfo.options, gameOpts.str(), ARRAY_SIZE(reply.GameInfo.options));
6666
wcslcpy(reply.GameInfo.gameName, m_currentGame->getName().str(), ARRAY_SIZE(reply.GameInfo.gameName));
6767
reply.GameInfo.inProgress = m_currentGame->isGameInProgress();
68+
reply.GameInfo.isDirectConnect = m_currentGame->getIsDirectConnect();
6869

6970
sendMessage(&reply);
7071
}

Core/GameEngine/Source/GameNetwork/LANGameInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ LANGameInfo::LANGameInfo()
9090
{
9191
m_lastHeard = 0;
9292
m_next = NULL;
93+
m_isDirectConnect = false;
94+
//
9395
for (Int i = 0; i< MAX_SLOTS; ++i)
9496
setSlotPointer(i, &m_LANSlot[i]);
9597

0 commit comments

Comments
 (0)