PPCTables: Do not consider OPTYPE_UNKNOWN as valid instruction

This commit is contained in:
Sepalani 2017-04-10 18:29:26 +01:00
parent 9d070a5df7
commit 27dcf92faa
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ const char* GetInstructionName(UGeckoInstruction _inst)
bool IsValidInstruction(UGeckoInstruction _inst)
{
const GekkoOPInfo* info = GetOpInfo(_inst);
return info != nullptr;
return info != nullptr && info->type != OPTYPE_UNKNOWN;
}
void CountInstruction(UGeckoInstruction _inst)