Add some error checks to Image::loadImage

Add default value to loadedPixmap
This commit is contained in:
Rasmus Karlsson
2018-04-16 23:48:30 +02:00
parent ea691635a1
commit 5f142e8d52
3 changed files with 45 additions and 10 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ private:
int duration;
};
QPixmap *currentPixmap;
QPixmap *loadedPixmap;
QPixmap *currentPixmap = nullptr;
QPixmap *loadedPixmap = nullptr;
std::vector<FrameData> allFrames;
int currentFrame = 0;
int currentFrameOffset = 0;