diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp index 86bd03fbac..9a68c808dc 100644 --- a/engines/hdb/map.cpp +++ b/engines/hdb/map.cpp @@ -180,15 +180,15 @@ void Map::loadSaveFile(Common::InSaveFile *in) { for (i = 0; i < _width * _height; i++) _foreground[i] = in->readSint32LE(); - _mapExplosions = new byte[_width * _height]; + _mapExplosions = (byte *)malloc(_width * _height); for (i = 0; i < _width * _height; i++) _mapExplosions[i] = in->readByte(); - _mapExpBarrels = new byte[_width * _height]; + _mapExpBarrels = (byte *)malloc(_width * _height); for (i = 0; i < _width * _height; i++) _mapExpBarrels[i] = in->readByte(); - _mapLaserBeams = new byte[_width * _height]; + _mapLaserBeams = (byte *)malloc(_width * _height); for (i = 0; i < _width * _height; i++) _mapLaserBeams[i] = in->readByte(); |