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