mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 16:37:06 +00:00
Fix some code porting discrepancies
This commit is contained in:
parent
f0febf526b
commit
00983174a5
19 changed files with 41 additions and 41 deletions
|
|
@ -597,11 +597,11 @@ void VehicleInfo::RemoveSeatMods(Unit* passenger, uint32 seatFlags)
|
|||
|
||||
if (seatFlags & SEAT_FLAG_CAN_CONTROL)
|
||||
{
|
||||
pPlayer->SetCharm(nullptr);
|
||||
pPlayer->SetCharm(NULL);
|
||||
pVehicle->SetCharmerGuid(ObjectGuid());
|
||||
|
||||
pPlayer->SetClientControl(pVehicle, 0);
|
||||
pPlayer->SetMover(nullptr);
|
||||
pPlayer->SetMover(NULL);
|
||||
|
||||
pVehicle->clearUnitState(UNIT_STAT_CONTROLLED);
|
||||
pVehicle->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED);
|
||||
|
|
@ -621,7 +621,7 @@ void VehicleInfo::RemoveSeatMods(Unit* passenger, uint32 seatFlags)
|
|||
{
|
||||
if (seatFlags & SEAT_FLAG_CAN_CONTROL)
|
||||
{
|
||||
passenger->SetCharm(nullptr);
|
||||
passenger->SetCharm(NULL);
|
||||
pVehicle->SetCharmerGuid(ObjectGuid());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue