From 7fc4f19750d1db4504f9b9c15fd4171f0bd28bf1 Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Sat, 3 Jan 2009 14:39:57 +0000 Subject: [PATCH] fix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1745 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/PPCTables.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/PowerPC/PPCTables.cpp b/Source/Core/Core/Src/PowerPC/PPCTables.cpp index eb62f29f27..0f222df854 100644 --- a/Source/Core/Core/Src/PowerPC/PPCTables.cpp +++ b/Source/Core/Core/Src/PowerPC/PPCTables.cpp @@ -707,9 +707,12 @@ void PrintInstructionRunCounts() temp.push_back(x); } std::sort(temp.begin(), temp.end()); - for (int i = m_numInstructions; i > 1; i--) + for (int i = 0; i < m_numInstructions; i++) { + if(temp[i].count == 0) + break; LOG(GEKKO, "%s : %i", temp[i].name,temp[i].count); + //PanicAlert("%s : %i", temp[i].name,temp[i].count); } }