From e09288aec11946fd1a50bed8755d92f14e6c0ef5 Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Tue, 7 Oct 2014 22:35:56 -0400 Subject: [PATCH] Fix crash in tas input. --- Source/Core/DolphinWX/TASInputDlg.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Core/DolphinWX/TASInputDlg.cpp b/Source/Core/DolphinWX/TASInputDlg.cpp index 0d791ca600..b2d2e88cee 100644 --- a/Source/Core/DolphinWX/TASInputDlg.cpp +++ b/Source/Core/DolphinWX/TASInputDlg.cpp @@ -93,6 +93,10 @@ void TASInputDlg::CreateWiiLayout() Buttons[11] = nullptr; //&C; Buttons[12] = nullptr; //&Z; + Controls[2] = nullptr; + Controls[3] = nullptr; + Controls[4] = nullptr; + Controls[5] = nullptr; Controls[6] = &xCont; Controls[7] = &yCont; Controls[8] = &zCont; @@ -179,6 +183,9 @@ void TASInputDlg::CreateGCLayout() Controls[3] = &rCont; Controls[4] = &CStick.xCont; Controls[5] = &CStick.yCont; + Controls[6] = nullptr; + Controls[7] = nullptr; + Controls[8] = nullptr; wxBoxSizer* const top_box = new wxBoxSizer(wxHORIZONTAL); wxBoxSizer* const bottom_box = new wxBoxSizer(wxHORIZONTAL);