diff options
author | QAston <none@none> | 2009-07-09 18:18:41 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-09 18:18:41 +0200 |
commit | 99ef71cbc4eff7e2b195ccdd9ad5d4185ca89387 (patch) | |
tree | 0b320569bdb0f9ada32eee43aaa2104dd1f50e64 /src/game/Vehicle.cpp | |
parent | b39bff681f41b12c483d2fa0a58623bd26ff5871 (diff) |
*Fix some problems with charmer removing started with rev 4402.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Vehicle.cpp')
-rw-r--r-- | src/game/Vehicle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Vehicle.cpp b/src/game/Vehicle.cpp index 8389eaf4cc9..257dfb5c912 100644 --- a/src/game/Vehicle.cpp +++ b/src/game/Vehicle.cpp @@ -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); |