mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/Scripts: Initialize rnd and remove where it was not needed
(cherry picked from commit eee7fa3fa7)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user