[Scummvm-cvs-logs] scummvm master -> eda34075c12a612ffb17ea39d524467233b288bf
Strangerke
Strangerke at scummvm.org
Tue Feb 25 08:11:07 CET 2014
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:
eda34075c1 VOYEUR: Fix some uninitialized variables in ThreadResource
Commit: eda34075c12a612ffb17ea39d524467233b288bf
https://github.com/scummvm/scummvm/commit/eda34075c12a612ffb17ea39d524467233b288bf
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-02-24T23:09:28-08:00
Commit Message:
VOYEUR: Fix some uninitialized variables in ThreadResource
Changed paths:
engines/voyeur/files_threads.cpp
diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp
index ee626fd..d0addc8 100644
--- a/engines/voyeur/files_threads.cpp
+++ b/engines/voyeur/files_threads.cpp
@@ -33,14 +33,22 @@ void ThreadResource::init() {
Common::fill(&_useCount[0], &_useCount[8], 0);
}
-ThreadResource::ThreadResource(BoltFilesState &state, const byte *src):
- _vm(state._vm) {
+ThreadResource::ThreadResource(BoltFilesState &state, const byte *src):_vm(state._vm) {
_stateId = READ_LE_UINT16(&src[0]);
_stackId = READ_LE_UINT16(&src[0]);
_savedStateId = READ_LE_UINT16(&src[0]);
_savedStackId = READ_LE_UINT16(&src[0]);
_ctlPtr = nullptr;
_aptPos = Common::Point(-1, -1);
+
+ _newStateId = -1;
+ _newStackId = -1;
+ _stateFlags = 0;
+ _stateCount = 0;
+ _parseCount = 0;
+ _nextStateId = -1;
+ _threadInfoPtr = nullptr;
+ _playCommandsPtr = nullptr;
}
void ThreadResource::initThreadStruct(int idx, int id) {
More information about the Scummvm-git-logs
mailing list