Merge pull request #2689 from RisingFog/patch-1
Fix TASInput Crash When Stick Bitmap Is Null
This commit is contained in:
commit
3d6ee7313d
|
@ -868,6 +868,8 @@ void TASInputDlg::UpdateStickBitmap(Stick stick)
|
|||
x = 256 - (u8)x;
|
||||
if (stick.y_cont.reverse)
|
||||
y = 256 - (u8)y;
|
||||
// If TASInputDlg::UpdateFromText(wxCommandEvent&) interrupts stick initialization, this bitmap is a nullptr
|
||||
if (stick.bitmap != nullptr)
|
||||
stick.bitmap->SetBitmap(CreateStickBitmap(x, y));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue