Core/Event: Fix Brewfest Music

Was only playing the same song over and over again.
This commit is contained in:
Kittnz authored and Aokromes committed 2016-10-21 08:58:15 +02:00
1 parent 3fe3f32d15
commit cd22b8ea7a
1 file changed
+3 -2
+3 -2
View File
@@ -1245,6 +1245,9 @@ public:
struct go_brewfest_musicAI : public GameObjectAI
{
uint32 rnd;
uint32 musicTime = 1000;
go_brewfest_musicAI(GameObject* go) : GameObjectAI(go)
{
_events.ScheduleEvent(EVENT_BM_SELECT_MUSIC, 1000);
@@ -1254,8 +1257,6 @@ public:
void UpdateAI(uint32 diff) override
{
_events.Update(diff);
uint32 rnd;
uint32 musicTime = 1000;
while (uint32 eventId = _events.ExecuteEvent())
{
switch (eventId)