mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10078] Use const referecne to opcode handle.
This commit is contained in:
parent
d6138f01a6
commit
b62d64e7c7
3 changed files with 4 additions and 4 deletions
|
|
@ -171,7 +171,7 @@ bool WorldSession::Update(uint32 /*diff*/)
|
|||
packet->GetOpcode());
|
||||
#endif*/
|
||||
|
||||
OpcodeHandler& opHandle = opcodeTable[packet->GetOpcode()];
|
||||
OpcodeHandler const& opHandle = opcodeTable[packet->GetOpcode()];
|
||||
try
|
||||
{
|
||||
switch (opHandle.status)
|
||||
|
|
@ -860,7 +860,7 @@ void WorldSession::SendRedirectClient(std::string& ip, uint16 port)
|
|||
SendPacket(&pkt);
|
||||
}
|
||||
|
||||
void WorldSession::ExecuteOpcode( OpcodeHandler& opHandle, WorldPacket* packet )
|
||||
void WorldSession::ExecuteOpcode( OpcodeHandler const& opHandle, WorldPacket* packet )
|
||||
{
|
||||
// need prevent do internal far teleports in handlers because some handlers do lot steps
|
||||
// or call code that can do far teleports in some conditions unexpectedly for generic way work code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue