*Fix some problems with charmer removing started with rev 4402.
--HG-- branch : trunk
This commit is contained in:
1 parent
b39bff681f
commit
99ef71cbc4
4 files changed
+16
-17
No files matched your search
@@ -329,7 +329,8 @@ bool Vehicle::AddPassenger(Unit *unit, int8 seatId)
|
||||
unit->m_movementInfo.t_seat = seat->first;
|
||||
|
||||
if(unit->GetTypeId() == TYPEID_PLAYER && seat->first == 0 && seat->second.seatInfo->IsUsable()) // not right
|
||||
SetCharmedBy(unit, CHARM_TYPE_VEHICLE);
|
||||
if (!SetCharmedBy(unit, CHARM_TYPE_VEHICLE))
|
||||
assert(false);
|
||||
|
||||
if(IsInWorld())
|
||||
unit->SendMonsterMoveTransport(this);
|
||||
|
||||
Reference in new issue
Block a user