mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 05:07:37 +00:00
opcode_map.cpp readability
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user