diff options
author | Nipun Garg | 2019-07-12 05:03:47 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:17 +0200 |
commit | d8f454dfe1bbc0490050710f2679b768338d74da (patch) | |
tree | e1ab6c8ffd696b13b13b232447a91b58e477212b | |
parent | eb7e3582ab91cff34f364d205d34135b5568c00f (diff) | |
download | scummvm-rg350-d8f454dfe1bbc0490050710f2679b768338d74da.tar.gz scummvm-rg350-d8f454dfe1bbc0490050710f2679b768338d74da.tar.bz2 scummvm-rg350-d8f454dfe1bbc0490050710f2679b768338d74da.zip |
HDB: Initialize Map member variables
-rw-r--r-- | engines/hdb/map.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp index fb84bc0979..dd36d03c88 100644 --- a/engines/hdb/map.cpp +++ b/engines/hdb/map.cpp @@ -299,8 +299,11 @@ bool Map::load(Common::SeekableReadStream *stream) { */ _mapExplosions = new byte[_width * _height]; + memset(_mapExplosions, 0, sizeof(_mapExplosions)); _mapExpBarrels = new byte[_width * _height]; + memset(_mapExpBarrels, 0, sizeof(_mapExpBarrels)); _mapLaserBeams = new byte[_width * _height]; + memset(_mapLaserBeams, 0, sizeof(_mapLaserBeams)); int sky = loadTiles(); g_hdb->_gfx->setSky(sky); |