From eee7fa3fa731e6d75c2934bc2b7ad07b1b664a03 Mon Sep 17 00:00:00 2001 From: Kittnz Date: Sat, 8 Oct 2016 16:43:08 +0200 Subject: Core/Scripts: Initialize rnd and remove where it was not needed --- src/server/scripts/World/go_scripts.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp index 3c4b5e8b36e..272ba71d609 100644 --- a/src/server/scripts/World/go_scripts.cpp +++ b/src/server/scripts/World/go_scripts.cpp @@ -1316,7 +1316,7 @@ public: struct go_brewfest_musicAI : public GameObjectAI { - uint32 rnd; + uint32 rnd = 0; uint32 musicTime = 1000; go_brewfest_musicAI(GameObject* go) : GameObjectAI(go) @@ -1489,8 +1489,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); @@ -1545,8 +1543,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); -- cgit v1.2.3