Skip to content

Commit 09e6ce7

Browse files
authored
bugfix(network): Assign disconnect frame when quitting the game via the disconnection menu (#2020)
1 parent 23a2926 commit 09e6ce7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Core/GameEngine/Source/GameNetwork/ConnectionManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,6 +1771,7 @@ void ConnectionManager::quitGame() {
17711771
// Need to do the NetDisconnectPlayerCommandMsg creation and sending here.
17721772
NetDisconnectPlayerCommandMsg *disconnectMsg = newInstance(NetDisconnectPlayerCommandMsg);
17731773
disconnectMsg->setDisconnectSlot(m_localSlot);
1774+
disconnectMsg->setDisconnectFrame(TheGameLogic->getFrame());
17741775
disconnectMsg->setPlayerID(m_localSlot);
17751776
if (DoesCommandRequireACommandID(disconnectMsg->getNetCommandType())) {
17761777
disconnectMsg->setID(GenerateNextCommandID());

0 commit comments

Comments
 (0)