From 5d63b3abb5eb85525602a867c1f64d742a558ec7 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Fri, 7 Jun 2019 18:51:33 +0530 Subject: HDB: Change _mapExplosions type from char to byte Char is not portable for anything other than ASCII strings, byte is preferred. Similar changes were made to _mapExpBarrels and _mapLaserBeams --- engines/hdb/map-loader.cpp | 6 +++--- engines/hdb/map-loader.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp index 984062fa59..f0f9370e97 100644 --- a/engines/hdb/map-loader.cpp +++ b/engines/hdb/map-loader.cpp @@ -83,9 +83,9 @@ bool Map::load(Common::SeekableReadStream *stream) { TODO: Set the InMapName once its setup */ - _mapExplosions = new char[_width * _height]; - _mapExpBarrels = new char[_width * _height]; - _mapLaserBeams = new char[_width * _height]; + _mapExplosions = new byte[_width * _height]; + _mapExpBarrels = new byte[_width * _height]; + _mapLaserBeams = new byte[_width * _height]; _mapX = _mapY = 0; diff --git a/engines/hdb/map-loader.h b/engines/hdb/map-loader.h index 5ac3dae7f8..578dc1d589 100644 --- a/engines/hdb/map-loader.h +++ b/engines/hdb/map-loader.h @@ -72,9 +72,9 @@ private: uint16 *_foreground; MSMIcon *_iconList; - char *_mapExplosions; - char *_mapExpBarrels; - char *_mapLaserBeams; + byte *_mapExplosions; + byte *_mapExpBarrels; + byte *_mapLaserBeams; bool _mapLoaded; }; -- cgit v1.2.3