diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2011-03-10 12:55:26 +0000 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2011-03-10 12:55:26 +0000 |
commit | aa0544a73122cd4f18bfcb28e8ddebf348686f5d (patch) | |
tree | d4852b50cf9402fb714d246caa24abbc0e374d97 /Sprite.cpp | |
parent | c12fcf8e7663c20e2c2c0696fb35a7059b83127a (diff) |
Ensure some variables are initialised
Diffstat (limited to 'Sprite.cpp')
-rw-r--r-- | Sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,6 +2,8 @@ #include "Sprite.h" Sprite::Sprite() { + // Set initial clip to the whole image + clipNo = 0; isVisible = true; } @@ -27,8 +29,6 @@ bool Sprite::visible() { bool Sprite::setImage(std::string path) { image = loadImage(path); - // Set initial clip to the whole image - clipNo = 0; clip[0].x = 0; clip[0].y = 0; clip[0].w = image->w; |