aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/Sprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/Sprite.cpp')
-rw-r--r--src/graphics/Sprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics/Sprite.cpp b/src/graphics/Sprite.cpp
index 63caa79..baf118e 100644
--- a/src/graphics/Sprite.cpp
+++ b/src/graphics/Sprite.cpp
@@ -38,8 +38,8 @@ namespace mgl {
return { sprite.scale.x, sprite.scale.y };
}
- const Texture& Sprite::get_texture() const {
- return texture;
+ const Texture* Sprite::get_texture() const {
+ return &texture;
}
void Sprite::draw(Window&) {