Browse Source

Bugfix: Don't pass along the bullet prototype each time.

Sam Jaffe 6 years ago
parent
commit
1e9f36c261
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pattern/burstshot_pattern.cxx

+ 1 - 1
src/pattern/burstshot_pattern.cxx

@@ -89,7 +89,7 @@ void burstshot::update(float delta) {
       new_bullet.set_velocity(shots[idx].first);
       new_bullet.set_position(actor->render_info().location.origin,
                               math::degree(shots[idx].second));
-      actor->level()->add_bullet(std::move(bullet_proto));
+      actor->level()->add_bullet(std::move(new_bullet));
       if (++idx == shots.size()) { idx = 0; }
     }
   }