badguy/haywire.cpp: Use BadGuy::get_nearest_player().
[supertux.git] / src / badguy / haywire.cpp
index f0aaa39..b07c569 100644 (file)
@@ -131,7 +131,7 @@ Haywire::active_update(float elapsed_time)
   }
 
   if (is_exploding && !turn_around_timer.started()) {
-    Player *p = Sector::current()->get_nearest_player (this->get_bbox ());
+    Player *p = this->get_nearest_player ();
 
     if (p) {
       Direction player_dir = LEFT;