*Fix build.
--HG-- branch : trunk
This commit is contained in:
@@ -197,12 +197,12 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Handle possessed unit movement separately
|
// Handle possessed unit movement separately
|
||||||
Unit* pos_unit = GetPlayer()->GetCharm();
|
/*Unit* pos_unit = GetPlayer()->GetCharm();
|
||||||
if (pos_unit && pos_unit->isPossessed()) // can be charmed but not possessed
|
if (pos_unit && pos_unit->isPossessed()) // can be charmed but not possessed
|
||||||
{
|
{
|
||||||
HandlePossessedMovement(recv_data, movementInfo, movementInfo.flags);
|
HandlePossessedMovement(recv_data, movementInfo, movementInfo.flags);
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if (GetPlayer()->GetDontMove())
|
if (GetPlayer()->GetDontMove())
|
||||||
return;
|
return;
|
||||||
|
|||||||
+1
-1
@@ -7183,7 +7183,7 @@ Unit* Unit::GetCharm() const
|
|||||||
|
|
||||||
sLog.outError("Unit::GetCharm: Charmed creature %u not exist.",GUID_LOPART(charm_guid));
|
sLog.outError("Unit::GetCharm: Charmed creature %u not exist.",GUID_LOPART(charm_guid));
|
||||||
const_cast<Unit*>(this)->SetCharm(0);
|
const_cast<Unit*>(this)->SetCharm(0);
|
||||||
const_cast<Unit*>(this)->SetMover(0);
|
//const_cast<Unit*>(this)->SetMover(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user