Allow dead-script on any badguy
[supertux.git] / src / badguy / mrrocket.cpp
index cbf5d31..3f6cc3b 100644 (file)
@@ -66,10 +66,10 @@ MrRocket::active_update(float elapsed_time)
 }
 
 bool
-MrRocket::collision_squished(Player& player)
+MrRocket::collision_squished(GameObject& object)
 {
   sprite->set_action(dir == LEFT ? "squished-left" : "squished-right");
-  kill_squished(player);
+  kill_squished(object);
   kill_fall();
   return true;
 }