diff options
author | megamage <none@none> | 2009-05-01 17:40:27 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-01 17:40:27 -0500 |
commit | e1b8fff590c6aca21297ecc638b29b59c4507cfe (patch) | |
tree | 52c623cc0a3617ec125eb97cfa771f9c6cb88308 /src | |
parent | b3ec053839da72333797508126f2f4f1e18b0781 (diff) |
*Fix a crash caused by uninitialized variable "m_transport"
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 2 | ||||
-rw-r--r-- | src/game/Unit.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 907d648f87f..0510fca231c 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -277,8 +277,6 @@ UpdateMask Player::updateVisualBits; Player::Player (WorldSession *session): Unit(), m_achievementMgr(this), m_reputationMgr(this) { - m_transport = 0; - m_speakTime = 0; m_speakCount = 0; diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index a859957d53e..70a6c461f4a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -81,7 +81,7 @@ static bool procPrepared = InitTriggerAuraData(); Unit::Unit() : WorldObject(), i_motionMaster(this), m_ThreatManager(this), m_HostilRefManager(this) , m_IsInNotifyList(false), m_Notified(false), IsAIEnabled(false), NeedChangeAI(false) -, i_AI(NULL), i_disabledAI(NULL), m_removedAurasCount(0), m_Vehicle(NULL) +, i_AI(NULL), i_disabledAI(NULL), m_removedAurasCount(0), m_Vehicle(NULL), m_transport(NULL) , m_ControlledByPlayer(false) { m_objectType |= TYPEMASK_UNIT; |