summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-29 04:00:47 +0100
committerbunnei <bunneidev@gmail.com>2014-12-29 04:00:47 +0100
commit5763d40319139aefd28ebfa387bbe56408664ce5 (patch)
treeaa067df603c9fc3117b1d30591e51330faf75ba1
parentMerge pull request #359 from lioncash/vfp (diff)
parentQt: we don't need to check if model is valid. (diff)
downloadyuzu-5763d40319139aefd28ebfa387bbe56408664ce5.tar
yuzu-5763d40319139aefd28ebfa387bbe56408664ce5.tar.gz
yuzu-5763d40319139aefd28ebfa387bbe56408664ce5.tar.bz2
yuzu-5763d40319139aefd28ebfa387bbe56408664ce5.tar.lz
yuzu-5763d40319139aefd28ebfa387bbe56408664ce5.tar.xz
yuzu-5763d40319139aefd28ebfa387bbe56408664ce5.tar.zst
yuzu-5763d40319139aefd28ebfa387bbe56408664ce5.zip
-rw-r--r--src/citra_qt/debugger/disassembler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/citra_qt/debugger/disassembler.cpp b/src/citra_qt/debugger/disassembler.cpp
index 2ee877743..14745f3bb 100644
--- a/src/citra_qt/debugger/disassembler.cpp
+++ b/src/citra_qt/debugger/disassembler.cpp
@@ -220,7 +220,9 @@ void DisassemblerWidget::OnPause()
emu_thread.SetCpuRunning(false);
// TODO: By now, the CPU might not have actually stopped...
- model->SetNextInstruction(Core::g_app_core->GetPC());
+ if (Core::g_app_core) {
+ model->SetNextInstruction(Core::g_app_core->GetPC());
+ }
}
void DisassemblerWidget::OnToggleStartStop()