From 5ccb29f27b8c6d492ce6098f6c76c35ee6698031 Mon Sep 17 00:00:00 2001 From: Andrii Solianyk Date: Mon, 2 Dec 2024 15:51:01 +0100 Subject: [PATCH] fix --- headers/Projectile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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