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

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

No files matched your search

+2 -1
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);