Fix invalid C++ code (returning reference to local) - thanks devm33.
This commit is contained in:
parent
3cc8f7747e
commit
a791733c27
|
@ -409,7 +409,7 @@ void NetPlayDiag::GetNetSettings(NetSettings &settings)
|
|||
settings.m_Controllers[i] = SConfig::GetInstance().m_SIDevice[i];
|
||||
}
|
||||
|
||||
const std::string& NetPlayDiag::FindGame()
|
||||
std::string NetPlayDiag::FindGame()
|
||||
{
|
||||
// find path for selected game, sloppy..
|
||||
for (u32 i = 0 ; auto game = m_game_list->GetISO(i); ++i)
|
||||
|
|
|
@ -92,7 +92,7 @@ private:
|
|||
void OnAdjustBuffer(wxCommandEvent& event);
|
||||
void OnConfigPads(wxCommandEvent& event);
|
||||
void GetNetSettings(NetSettings &settings);
|
||||
const std::string& FindGame();
|
||||
std::string FindGame();
|
||||
|
||||
wxListBox* m_player_lbox;
|
||||
wxTextCtrl* m_chat_text;
|
||||
|
|
Loading…
Reference in New Issue