diff --git a/headers/Projectile.h b/headers/Projectile.h index 5b15978..c50a518 100644 --- a/headers/Projectile.h +++ b/headers/Projectile.h @@ -15,13 +15,13 @@ public: void setSpeed(float speed); bool isOutOfBounds() const; virtual void update() = 0; - static sf::Texture texture; protected: - ~Projectile() = default; + static sf::Texture texture; sf::Sprite sprite; Position position{}; float speed; bool outOfBounds; + ~Projectile() = default; }; #endif //PROJECTILE_H