mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9560] Fixes possible runtime crash added by 9551
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
This commit is contained in:
parent
820550223a
commit
37f733221d
2 changed files with 3 additions and 3 deletions
|
|
@ -178,7 +178,7 @@ void WorldSession::HandleMoveTeleportAck(WorldPacket& recv_data)
|
||||||
|
|
||||||
uint32 flags, time;
|
uint32 flags, time;
|
||||||
recv_data >> flags >> time;
|
recv_data >> flags >> time;
|
||||||
DEBUG_LOG("Guid " UI64FMTD, guid);
|
DEBUG_LOG("Guid " UI64FMTD, guid.GetRawValue());
|
||||||
DEBUG_LOG("Flags %u, time %u", flags, time/IN_MILISECONDS);
|
DEBUG_LOG("Flags %u, time %u", flags, time/IN_MILISECONDS);
|
||||||
|
|
||||||
Unit *mover = _player->m_mover;
|
Unit *mover = _player->m_mover;
|
||||||
|
|
@ -457,7 +457,7 @@ void WorldSession::HandleMoveNotActiveMover(WorldPacket &recv_data)
|
||||||
|
|
||||||
if(_player->m_mover->GetGUID() == old_mover_guid.GetRawValue())
|
if(_player->m_mover->GetGUID() == old_mover_guid.GetRawValue())
|
||||||
{
|
{
|
||||||
sLog.outError("HandleMoveNotActiveMover: incorrect mover guid: mover is " I64FMT " and should be " I64FMT " instead of " UI64FMTD, _player->m_mover->GetGUID(), _player->GetGUID(), old_mover_guid);
|
sLog.outError("HandleMoveNotActiveMover: incorrect mover guid: mover is " I64FMT " and should be " I64FMT " instead of " UI64FMTD, _player->m_mover->GetGUID(), _player->GetGUID(), old_mover_guid.GetRawValue());
|
||||||
recv_data.rpos(recv_data.wpos()); // prevent warnings spam
|
recv_data.rpos(recv_data.wpos()); // prevent warnings spam
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9559"
|
#define REVISION_NR "9560"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue