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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user