HDB: Fix uninitalised reads

This commit is contained in:
Eugene Sandulenko 2019-07-17 17:25:37 +02:00
parent 9ab298748e
commit e74bdbf410

View File

@ -33,6 +33,9 @@ Gfx::Gfx() {
_sines = new Common::SineTable(360);
_cosines = new Common::CosineTable(360);
_systemInit = false;
memset(&_fadeInfo, 0, sizeof(_fadeInfo));
memset(&_snowInfo, 0, sizeof(_snowInfo));
}
Gfx::~Gfx() {
@ -199,11 +202,12 @@ void Gfx::fillScreen(uint32 color) {
void Gfx::updateVideo() {
updateFade();
g_hdb->checkProgress();
if (!g_hdb->_progressGfx)
return;
g_hdb->checkProgress();
int left = kScreenWidth / 2 - g_hdb->_progressGfx->_width / 2;
Common::Rect clip(g_hdb->_progressGfx->getSurface()->getBounds());