*Fix a warning.
--HG-- branch : trunk
This commit is contained in:
-1
@@ -112,7 +112,6 @@ struct TRINITY_DLL_DECL boss_salrammAI : public ScriptedAI
|
|||||||
if (Summon_ghouls_Timer < diff)
|
if (Summon_ghouls_Timer < diff)
|
||||||
{
|
{
|
||||||
DoScriptText(RAND(SAY_SUMMON_GHOULS_1,SAY_SUMMON_GHOULS_2), m_creature);
|
DoScriptText(RAND(SAY_SUMMON_GHOULS_1,SAY_SUMMON_GHOULS_2), m_creature);
|
||||||
switch(rand()%2)
|
|
||||||
if (Unit* random_target = SelectUnit(SELECT_TARGET_RANDOM, 0))
|
if (Unit* random_target = SelectUnit(SELECT_TARGET_RANDOM, 0))
|
||||||
DoCast(random_target,SPELL_SUMMON_GHOULS);
|
DoCast(random_target,SPELL_SUMMON_GHOULS);
|
||||||
Summon_ghouls_Timer = 10000;
|
Summon_ghouls_Timer = 10000;
|
||||||
|
|||||||
@@ -307,7 +307,7 @@ struct TRINITY_DLL_DECL instance_ulduar : public ScriptedInstance
|
|||||||
|
|
||||||
OUT_LOAD_INST_DATA(strIn);
|
OUT_LOAD_INST_DATA(strIn);
|
||||||
|
|
||||||
char dataHead1, dataHead2;
|
char dataHead1, dataHead2; // warning: uninitialized :(
|
||||||
|
|
||||||
std::istringstream loadStream(strIn);
|
std::istringstream loadStream(strIn);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user