Fix 4.0-5689 regression (AR codes, patches)

CreateCodeTab, ARCodeAddEdit and PatchAddEdit
need to be able to modify arCodes/onFrame.
This commit is contained in:
JosJuice
2015-03-06 12:26:40 +01:00
parent e96569ff0c
commit 4a41ab1715
10 changed files with 34 additions and 34 deletions

View File

@ -25,7 +25,7 @@ class wxWindow;
class CPatchAddEdit : public wxDialog
{
public:
CPatchAddEdit(int _selection, const std::vector<PatchEngine::Patch>& _onFrame,
CPatchAddEdit(int _selection, std::vector<PatchEngine::Patch>* _onFrame,
wxWindow* parent,
wxWindowID id = wxID_ANY,
const wxString& title = _("Edit Patch"),
@ -43,7 +43,7 @@ private:
wxButton* EntryAdd;
wxButton* EntryRemove;
wxStaticBoxSizer* sbEntry;
std::vector<PatchEngine::Patch> onFrame;
std::vector<PatchEngine::Patch>* onFrame;
void CreateGUIControls(int selection);
void ChangeEntry(wxSpinEvent& event);