aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 0256190..01b8a7c 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -245,7 +245,7 @@ void PlayerSystem::receive(const UseItemEvent& uie)
e.assign<Physics>();
auto sprite = e.assign<Sprite>();
auto tex = InventorySystem::getItem("Arrow");
- sprite->addSpriteSegment(SpriteData(tex.sprite), 0);
+ sprite->addSpriteSegment(SpriteData(tex->sprite), 0);
auto dim = HLINES(sprite->getSpriteSize());
e.assign<Solid>(dim.x, dim.y);
e.assign<Hit>(10, false);