diff options
| author | Dolphin Bot <dolphin-emu-bot@users.noreply.github.com> | 2015-03-11 08:15:02 +0100 |
|---|---|---|
| committer | Dolphin Bot <dolphin-emu-bot@users.noreply.github.com> | 2015-03-11 08:15:02 +0100 |
| commit | 647cd3c8e0270a85166f47cf0f0f62236a0c04cc (patch) | |
| tree | 47c9fd10f07ac1b9b2a6d101853239838b2d867e /Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp | |
| parent | 9ccc236b9ca0d663f1816748cdc4307911145cba (diff) | |
| parent | 4a41ab17155e4103ea7844b6e6aa3c434dbb7e63 (diff) | |
Merge pull request #2171 from JosJuice/nonmodal-regression
Fix 4.0-5689 regression (AR codes, patches)
Diffstat (limited to 'Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp b/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp index c9766cd2ce..4ba0926ab3 100644 --- a/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp +++ b/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp @@ -20,7 +20,7 @@ // Fired when an ActionReplay code is created. wxDEFINE_EVENT(UPDATE_CHEAT_LIST_EVENT, wxCommandEvent); -CreateCodeDialog::CreateCodeDialog(wxWindow* const parent, const u32 address, const std::vector<ActionReplay::ARCode>& _arCodes) +CreateCodeDialog::CreateCodeDialog(wxWindow* const parent, const u32 address, std::vector<ActionReplay::ARCode>* _arCodes) : wxDialog(parent, wxID_ANY, _("Create AR Code")) , m_code_address(address) , arCodes(_arCodes) @@ -92,7 +92,7 @@ void CreateCodeDialog::PressOK(wxCommandEvent& ev) { CISOProperties isoprops(SConfig::GetInstance().m_LastFilename, this); // add the code to the isoproperties arcode list - arCodes.push_back(new_cheat); + arCodes->push_back(new_cheat); // save the gameini isoprops.SaveGameConfig(); isoprops.ActionReplayList_Load(); // loads the new arcodes |
