summaryrefslogtreecommitdiff
path: root/src/imagesprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imagesprite.cpp')
-rw-r--r--src/imagesprite.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/imagesprite.cpp b/src/imagesprite.cpp
index 74d9bc43..9ef27cd1 100644
--- a/src/imagesprite.cpp
+++ b/src/imagesprite.cpp
@@ -23,17 +23,12 @@
#include "graphics.h"
ImageSprite::ImageSprite(Image *image):
- mImage(image)
+ mImage(image)
{
mAlpha = mImage->getAlpha();
-
- mImage->incRef();
}
-ImageSprite::~ImageSprite()
-{
- mImage->decRef();
-}
+ImageSprite::~ImageSprite() = default;
bool ImageSprite::draw(Graphics *graphics, int posX, int posY) const
{