From 95e4e04f8da16c7b8cb08f5bbb47ab248cdcfbe5 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 16 Jun 2014 00:36:16 -0700 Subject: [PATCH] Fix a crash in the GE debugger on matrix tab. --- Windows/GEDebugger/TabVertices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/GEDebugger/TabVertices.cpp b/Windows/GEDebugger/TabVertices.cpp index f6b634cfa9..38c14b68bd 100644 --- a/Windows/GEDebugger/TabVertices.cpp +++ b/Windows/GEDebugger/TabVertices.cpp @@ -343,7 +343,7 @@ CtrlMatrixList::CtrlMatrixList(HWND hwnd) } void CtrlMatrixList::GetColumnText(wchar_t *dest, int row, int col) { - if (row < 0 || row >= MATRIXLIST_ROW_COUNT || col < 0 || col >= MATRIXLIST_COL_COUNT) { + if (!gpuDebug || row < 0 || row >= MATRIXLIST_ROW_COUNT || col < 0 || col >= MATRIXLIST_COL_COUNT) { wcscpy(dest, L"Invalid"); return; }