Made code -Wshadow clean, missed a bunch of issues in the last commit
[supertux.git] / src / badguy / mole_rock.cpp
index a0cf0c0..6b25970 100644 (file)
@@ -31,9 +31,9 @@ MoleRock::MoleRock(const Reader& reader) :
   sound_manager->preload("sounds/stomp.wav");
 }
 
-MoleRock::MoleRock(const Vector& pos, const Vector& velocity, const BadGuy* parent = 0) :
+MoleRock::MoleRock(const Vector& pos, const Vector& velocity, const BadGuy* parent_ = 0) :
   BadGuy(pos, LEFT, "images/creatures/mole/mole_rock.sprite", LAYER_TILES - 2),
-  parent(parent),
+  parent(parent_),
   initial_velocity(velocity)
 {
   physic.enable_gravity(true);