diff --git a/projects/mtg/src/ActionLayer.cpp b/projects/mtg/src/ActionLayer.cpp index d2e193cf0..7ba8ce39d 100644 --- a/projects/mtg/src/ActionLayer.cpp +++ b/projects/mtg/src/ActionLayer.cpp @@ -35,7 +35,7 @@ int ActionLayer::removeFromGame(ActionElement * e) if (i == -1) return 0; //Should not happen, it means we deleted thesame object twice? AbilityFactory af(observer); - if(MTGAbility * a = dynamic_cast(e)) + if(dynamic_cast(e)) { AManaProducer * manaObject = dynamic_cast(af.getCoreAbility((MTGAbility*)e)); if(manaObject) diff --git a/projects/mtg/src/GuiLayers.cpp b/projects/mtg/src/GuiLayers.cpp index 13baba317..b883f48ec 100644 --- a/projects/mtg/src/GuiLayers.cpp +++ b/projects/mtg/src/GuiLayers.cpp @@ -22,7 +22,7 @@ void GuiLayer::Add(JGuiObject *object) { mObjects.push_back(object); AbilityFactory af(observer); - if(MTGAbility * a = dynamic_cast(object)) + if(dynamic_cast(object)) { AManaProducer * manaObject = dynamic_cast(af.getCoreAbility((MTGAbility*)object)); if(manaObject) @@ -36,7 +36,7 @@ int GuiLayer::Remove(JGuiObject *object) { AbilityFactory af(observer); - if(MTGAbility * a = dynamic_cast(object)) + if(dynamic_cast(object)) { AManaProducer * manaObject = dynamic_cast(af.getCoreAbility((MTGAbility*)object)); if(manaObject) diff --git a/projects/mtg/src/GuiPhaseBar.cpp b/projects/mtg/src/GuiPhaseBar.cpp index 7a9199e5c..c9afda40c 100644 --- a/projects/mtg/src/GuiPhaseBar.cpp +++ b/projects/mtg/src/GuiPhaseBar.cpp @@ -42,7 +42,7 @@ namespace } GuiPhaseBar::GuiPhaseBar(GameObserver* observer) : - PlayGuiObject(0, 0, 106, 0, false), GuiLayer(observer), + GuiLayer(observer), PlayGuiObject(0, 0, 106, 0, false), phase(NULL), angle(0.0f), zoomFactor(ICONSCALE) { JQuadPtr quad = WResourceManager::Instance()->GetQuad("phasebar");