summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Sprite.cpp2
-rw-r--r--Sprite.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Sprite.cpp b/Sprite.cpp
index 373b04e..8d1441e 100644
--- a/Sprite.cpp
+++ b/Sprite.cpp
@@ -27,7 +27,7 @@ bool Sprite::visible() {
return isVisible;
}
-bool Sprite::setImage(std::string path) {
+void Sprite::setImage(std::string path) {
image = loadImage(path);
clip[0].x = 0;
clip[0].y = 0;
diff --git a/Sprite.h b/Sprite.h
index 72a5270..ba32799 100644
--- a/Sprite.h
+++ b/Sprite.h
@@ -21,7 +21,7 @@ class Sprite {
bool visible();
// Load in this sprite's image
- bool setImage(std::string path);
+ void setImage(std::string path);
// TODO: Add method that can set reference to an already loaded image
// This sprite's image
SDL_Surface *image;