diff --git a/source/game/items/StarMaterialItem.cpp b/source/game/items/StarMaterialItem.cpp index 1cc1502..c3e21f0 100644 --- a/source/game/items/StarMaterialItem.cpp +++ b/source/game/items/StarMaterialItem.cpp @@ -45,6 +45,10 @@ void MaterialItem::init(ToolUserEntity* owner, ToolHand hand) { BeamItem::init(owner, hand); } +void MaterialItem::uninit() { + m_lastAimPosition.reset(); +} + void MaterialItem::update(float dt, FireMode fireMode, bool shifting, HashSet const& moves) { FireableItem::update(dt, fireMode, shifting, moves); BeamItem::update(dt, fireMode, shifting, moves); diff --git a/source/game/items/StarMaterialItem.hpp b/source/game/items/StarMaterialItem.hpp index 5f27531..50da0fd 100644 --- a/source/game/items/StarMaterialItem.hpp +++ b/source/game/items/StarMaterialItem.hpp @@ -18,6 +18,7 @@ public: ItemPtr clone() const override; void init(ToolUserEntity* owner, ToolHand hand) override; + void uninit() override; void update(float dt, FireMode fireMode, bool shifting, HashSet const& moves) override; List nonRotatedDrawables() const override;