mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
VOYEUR: Fix some uninitialized variables
This commit is contained in:
parent
e752d38ac1
commit
1e45673b4d
@ -90,6 +90,8 @@ SVoy::SVoy(VoyeurEngine *vm):_vm(vm) {
|
||||
_events[i]._computerOff = 0;
|
||||
_events[i]._dead = 0;
|
||||
}
|
||||
for (int i = 0; i < 6; i++)
|
||||
_evCmPtrs[i] = nullptr;
|
||||
}
|
||||
|
||||
void SVoy::addEvent(int hour, int minute, VoyeurEventType type, int audioVideoId,
|
||||
|
@ -82,6 +82,9 @@ EventsManager::EventsManager(VoyeurEngine *vm) : _intPtr(_gameData),
|
||||
|
||||
_fadeFirstCol = _fadeLastCol = 0;
|
||||
_fadeCount = 1;
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
_cycleNext[i] = nullptr;
|
||||
}
|
||||
|
||||
void EventsManager::startMainClockInt() {
|
||||
|
@ -1127,6 +1127,7 @@ PictureResource::PictureResource(Graphics::Surface *surface) {
|
||||
_onOff = 0;
|
||||
_maskData = 0;
|
||||
_planeSize = 0;
|
||||
_keyColor = 0;
|
||||
|
||||
_bounds = Common::Rect(0, 0, surface->w, surface->h);
|
||||
_imgData = (byte *)surface->getPixels();
|
||||
@ -1140,6 +1141,7 @@ PictureResource::PictureResource() {
|
||||
_onOff = 0;
|
||||
_maskData = 0;
|
||||
_planeSize = 0;
|
||||
_keyColor = 0;
|
||||
|
||||
_imgData = NULL;
|
||||
_freeImgData = DisposeAfterUse::NO;
|
||||
|
Loading…
x
Reference in New Issue
Block a user