Fix crash in debugger after unloading the game.

This commit is contained in:
Henrik Rydgård committed 2023-12-13 22:00:55 +01:00
1 parent 2f1389233e
commit 15c0bb1bd0
1 file changed
+3 -1
+3 -1
View File
@@ -672,7 +672,9 @@ bool CtrlStackTraceView::WindowMessage(UINT msg, WPARAM wParam, LPARAM lParam, L
void CtrlStackTraceView::GetColumnText(wchar_t* dest, int row, int col)
{
if (row < 0 || row >= (int)frames.size()) {
// We should have emptied the list if g_symbolMap is nullptr, but apparently we don't,
// so let's have a sanity check here.
if (row < 0 || row >= (int)frames.size() || !g_symbolMap) {
return;
}