Core: Remove some more warnings (initialization sequence in Unit.cpp and a non-initalized variable in worldserver)

--HG--
branch : trunk
This commit is contained in:
click
2010-09-12 21:19:43 +02:00
parent 9bf50057a3
commit c4028111bd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -101,8 +101,8 @@ static bool procPrepared = InitTriggerAuraData();
Unit::Unit(): WorldObject(), Unit::Unit(): WorldObject(),
m_movedPlayer(NULL), IsAIEnabled(false), NeedChangeAI(false), m_movedPlayer(NULL), IsAIEnabled(false), NeedChangeAI(false),
m_ControlledByPlayer(false), i_AI(NULL), i_disabledAI(NULL), m_procDeep(0), m_ControlledByPlayer(false), i_AI(NULL), i_disabledAI(NULL), m_procDeep(0),
m_removedAurasCount(0), m_vehicle(NULL), i_motionMaster(this), m_vehicleKit(NULL), m_removedAurasCount(0), i_motionMaster(this), m_ThreatManager(this), m_vehicle(NULL),
m_ThreatManager(this), m_unitTypeMask(UNIT_MASK_NONE), m_HostileRefManager(this) m_vehicleKit(NULL), m_unitTypeMask(UNIT_MASK_NONE), m_HostileRefManager(this)
{ {
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(default:4355) #pragma warning(default:4355)
@@ -106,7 +106,7 @@ void utf8print(void* /*arg*/, const char* str)
printf(temp_buf); printf(temp_buf);
#else #else
{ {
va_list v; va_list v = NULL;
vprintf(str, v); vprintf(str, v);
va_end(v); va_end(v);
fflush(stdout); fflush(stdout);