[Scummvm-cvs-logs] scummvm master -> 40f1f3e0b13adafb775f5b930753f129aeaf9674

bluegr bluegr at gmail.com
Thu Sep 26 10:31:41 CEST 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
40f1f3e0b1 NEVERHOOD: Fix uninitialized class members in AnimatedSprite - CID 1022296


Commit: 40f1f3e0b13adafb775f5b930753f129aeaf9674
    https://github.com/scummvm/scummvm/commit/40f1f3e0b13adafb775f5b930753f129aeaf9674
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2013-09-26T01:31:08-07:00

Commit Message:
NEVERHOOD: Fix uninitialized class members in AnimatedSprite - CID 1022296

Changed paths:
    engines/neverhood/sprite.cpp



diff --git a/engines/neverhood/sprite.cpp b/engines/neverhood/sprite.cpp
index 3c158ff..1a43246 100644
--- a/engines/neverhood/sprite.cpp
+++ b/engines/neverhood/sprite.cpp
@@ -211,6 +211,12 @@ void AnimatedSprite::init() {
 	_replNewColor = 0;
 	_animResource.setReplEnabled(false);
 	_playBackwards = false;
+	_currAnimFileHash = 0;
+	_lastFrameIndex = 0;
+	_plLastFrameIndex = 0;
+	_plFirstFrameHash = 0;
+	_plLastFrameHash = 0;
+	_animStatus = 0;
 }
 
 void AnimatedSprite::update() {






More information about the Scummvm-git-logs mailing list