소스 검색

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

Sam Jaffe 6 년 전
부모
커밋
1e9f36c261
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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; }
     }
   }