From 41f35840af652357628d29fc0960019e0ba314a4 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 22 Apr 2021 18:39:11 +0200 Subject: [PATCH] :bug: Fix size of m_game_data --- Source/DiabloUI/selgame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/DiabloUI/selgame.cpp b/Source/DiabloUI/selgame.cpp index 0e91aa35e..ba47b0566 100644 --- a/Source/DiabloUI/selgame.cpp +++ b/Source/DiabloUI/selgame.cpp @@ -448,7 +448,7 @@ void selgame_Password_Select(int value) m_game_data->bTheoQuest = sgOptions.Gameplay.bTheoQuest; m_game_data->bCowQuest = sgOptions.Gameplay.bCowQuest; - if (SNetCreateGame(nullptr, selgame_Password, (char *)m_game_data, sizeof(m_game_data), gdwPlayerId)) { + if (SNetCreateGame(nullptr, selgame_Password, (char *)m_game_data, sizeof(*m_game_data), gdwPlayerId)) { UiInitList_clear(); selgame_endMenu = true; } else {