[10078] Use const referecne to opcode handle.

This commit is contained in:
VladimirMangos 2010-06-19 06:25:31 +04:00
parent d6138f01a6
commit b62d64e7c7
3 changed files with 4 additions and 4 deletions

View file

@ -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