mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
Merge pull request #2689 from RisingFog/patch-1
Fix TASInput Crash When Stick Bitmap Is Null
This commit is contained in:
parent
cc8380ee65
commit
a522aa5bfc
1 changed files with 3 additions and 1 deletions
|
@ -868,7 +868,9 @@ void TASInputDlg::UpdateStickBitmap(Stick stick)
|
||||||
x = 256 - (u8)x;
|
x = 256 - (u8)x;
|
||||||
if (stick.y_cont.reverse)
|
if (stick.y_cont.reverse)
|
||||||
y = 256 - (u8)y;
|
y = 256 - (u8)y;
|
||||||
stick.bitmap->SetBitmap(CreateStickBitmap(x, y));
|
// If TASInputDlg::UpdateFromText(wxCommandEvent&) interrupts stick initialization, this bitmap is a nullptr
|
||||||
|
if (stick.bitmap != nullptr)
|
||||||
|
stick.bitmap->SetBitmap(CreateStickBitmap(x, y));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TASInputDlg::OnCloseWindow(wxCloseEvent& event)
|
void TASInputDlg::OnCloseWindow(wxCloseEvent& event)
|
||||||
|
|
Loading…
Add table
Reference in a new issue