Skip to content

Commit

Permalink
MSVC2019 initializer list fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed May 7, 2023
1 parent c0d7613 commit 75104fd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/gui/lobby.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,13 @@ bool SceneLobby::OnEvent(const SEvent &e)
wide_to_utf8(title, b_title->getText());
wide_to_utf8(code, b_code->getText());

auto wc_data = new GameEvent::WorldCreationData();
wc_data->mode = s_mode->getSelected();
wc_data->title = title;
wc_data->code = code;

GameEvent e(GameEvent::G2C_CREATE_WORLD);
e.wc_data = new GameEvent::WorldCreationData {
.mode = s_mode->getSelected(),
.title = title,
.code = code
};
e.wc_data = wc_data;
m_gui->sendNewEvent(e);
return true;
}
Expand Down

0 comments on commit 75104fd

Please sign in to comment.