*Fix some problems with charmer removing started with rev 4402.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-09 18:18:41 +02:00
parent b39bff681f
commit 99ef71cbc4
4 changed files with 16 additions and 17 deletions

View File

@@ -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);