Fix a crash in the GE debugger on matrix tab.

This commit is contained in:
Unknown W. Brackets 2014-06-16 00:36:16 -07:00
parent 982f0416a2
commit 95e4e04f8d

View File

@ -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;
}