diff --git a/projects/mtg/src/GuiPhaseBar.cpp b/projects/mtg/src/GuiPhaseBar.cpp index 40ae1ca75..706e46d89 100644 --- a/projects/mtg/src/GuiPhaseBar.cpp +++ b/projects/mtg/src/GuiPhaseBar.cpp @@ -18,7 +18,7 @@ static int colors[] = ARGB(255, 255, 255, 255) }; -GuiPhaseBar::GuiPhaseBar() : phase(GameObserver::GetInstance()->phaseRing->getCurrentPhase()), angle(0.0f) +GuiPhaseBar::GuiPhaseBar(GameObserver* game):GuiLayer(0,game), phase(GameObserver::GetInstance()->phaseRing->getCurrentPhase()), angle(0.0f) { JTexture* texture = GameApp::CommonRes->GetTexture("graphics/phasebar.png"); if (texture) @@ -87,7 +87,8 @@ void GuiPhaseBar::Render() } } -int GuiPhaseBar::receiveEventMinus(WEvent *e) + +int GuiPhaseBar::receiveEvent(WEvent *e) { WEventPhaseChange *event = dynamic_cast(e); if (event)