aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKittnz <frederik156@hotmail.com>2016-10-08 16:43:08 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-09-05 11:20:44 +0200
commit58fa54801f88cc33726fb44c872447ba80f6bf77 (patch)
tree2a9d1e46f8d29544338087aaa52136723ee9a874
parent8e3237724b7ec5ff81621733a1456fb77870c7bd (diff)
Core/Scripts: Initialize rnd and remove where it was not needed
(cherry picked from commit eee7fa3fa731e6d75c2934bc2b7ad07b1b664a03)
-rw-r--r--src/server/scripts/World/go_scripts.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp
index d354eb46d51..549b2f920a1 100644
--- a/src/server/scripts/World/go_scripts.cpp
+++ b/src/server/scripts/World/go_scripts.cpp
@@ -49,6 +49,7 @@ EndContentData */
#include "GameObject.h"
#include "GameObjectAI.h"
#include "Log.h"
+#include "Map.h"
#include "MotionMaster.h"
#include "Player.h"
#include "ScriptedCreature.h"
@@ -1245,7 +1246,7 @@ public:
struct go_brewfest_musicAI : public GameObjectAI
{
- uint32 rnd;
+ uint32 rnd = 0;
uint32 musicTime = 1000;
go_brewfest_musicAI(GameObject* go) : GameObjectAI(go)
@@ -1418,8 +1419,6 @@ public:
struct go_darkmoon_faire_musicAI : public GameObjectAI
{
- uint32 rnd;
-
go_darkmoon_faire_musicAI(GameObject* go) : GameObjectAI(go)
{
_events.ScheduleEvent(EVENT_DFM_START_MUSIC, 1000);
@@ -1474,8 +1473,6 @@ public:
struct go_pirate_day_musicAI : public GameObjectAI
{
- uint32 rnd;
-
go_pirate_day_musicAI(GameObject* go) : GameObjectAI(go)
{
_events.ScheduleEvent(EVENT_PDM_START_MUSIC, 1000);