mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
ASYLUM: Fix Uninitialized Variable Accesses Identified by Valgrind
This commit is contained in:
parent
93f08cc43d
commit
b4a0418525
@ -79,7 +79,7 @@ Common::String Encounter::ScriptEntry::toString() {
|
||||
}
|
||||
|
||||
Encounter::Encounter(AsylumEngine *engine) : _vm(engine),
|
||||
_index(0), _speechResourceId(0), _item(NULL), _objectId1(kObjectNone), _objectId2(kObjectNone), _objectId3(kObjectNone),
|
||||
_index(0), _speechResourceId(0), _soundResourceId(kResourceNone), _item(NULL), _objectId1(kObjectNone), _objectId2(kObjectNone), _objectId3(kObjectNone),
|
||||
_actorIndex(kActorInvalid), _shouldEnablePlayer(false), _wasPlayerDisabled(false), _isClosing(false), _isScriptRunning(false) {
|
||||
|
||||
memset(&_keywordIndexes, 0, sizeof(_keywordIndexes));
|
||||
|
@ -293,6 +293,7 @@ void ScriptManager::reset(uint32 count) {
|
||||
_exit = false;
|
||||
_processNextEntry = false;
|
||||
|
||||
_lastProcessedCmd = NULL;
|
||||
_currentScript = NULL;
|
||||
_currentQueueEntry = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user