Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "bad wxCheckListBox index" warning when trying to create AR Code #743

Merged
merged 2 commits into from Aug 6, 2014
Merged

Fix "bad wxCheckListBox index" warning when trying to create AR Code #743

merged 2 commits into from Aug 6, 2014

Conversation

RolandMunsil
Copy link
Contributor

Fixes issue 7060

Since the "Create AR Code" dialog adds an AR code to arCodes but doesn't add a checkbox to the cheat list, an error occurs during saving when trying to access the checkbox associated with the added code. To fix this, the save method now checks the index before it tries to access the checkbox.

@Parlane
Copy link
Member

Parlane commented Aug 6, 2014

@dolphin-emu-bot rebuild

for (const ActionReplay::ARCode& code : arCodes)
{
if (Cheats->IsChecked(index))
//Check the index against the count because of the hacky way codes are added from the "Cheat Search" dialog

This comment was marked as off-topic.

@lioncash
Copy link
Member

lioncash commented Aug 6, 2014

@dolphin-emu-bot rebuild

Final test.

lioncash added a commit that referenced this pull request Aug 6, 2014
Fix "bad wxCheckListBox index" warning when trying to create AR Code
@lioncash lioncash merged commit 95f15ac into dolphin-emu:master Aug 6, 2014
@RolandMunsil RolandMunsil deleted the fix-ar-code-warning branch August 6, 2014 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants