mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02:00
DebuggerViews: Fixed nullptr dereferences
This commit is contained in:
@ -156,7 +156,7 @@ void CMemoryView::OnScrollWheel(wxMouseEvent& event)
|
||||
|
||||
void CMemoryView::OnPopupMenu(wxCommandEvent& event)
|
||||
{
|
||||
CFrame* main_frame = (CFrame*)(GetParent()->GetParent()->GetParent());
|
||||
CFrame* main_frame = static_cast<CFrame*>(GetGrandParent()->GetParent());
|
||||
CCodeWindow* code_window = main_frame->g_pCodeWindow;
|
||||
CWatchWindow* watch_window = code_window->m_WatchWindow;
|
||||
|
||||
|
Reference in New Issue
Block a user