opcode_map.cpp readability

This commit is contained in:
Akkadius 2014-12-15 22:23:49 -06:00
parent c1e5d8b7dc
commit ffe447859a

View File

@ -7,9 +7,9 @@ std::map<unsigned long, std::string> opcode_map;
std::string get_opcode_name(unsigned long opcode)
{
std::map<unsigned long, std::string>::iterator itr;;
return (itr = opcode_map.find(opcode)) != opcode_map.end() ? itr->second : "OP_Unknown";
}
void load_opcode_names()
{
opcode_map[0x0176] = "LiveOP_Heartbeat";