aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-07 18:51:33 +0530
committerEugene Sandulenko2019-09-03 17:16:44 +0200
commit5d63b3abb5eb85525602a867c1f64d742a558ec7 (patch)
tree8257e25205b836fc329eed4281b0e8c6f6e39e82
parentd1705bc442e0c7fa01b4f85547317970d92d6d0e (diff)
downloadscummvm-rg350-5d63b3abb5eb85525602a867c1f64d742a558ec7.tar.gz
scummvm-rg350-5d63b3abb5eb85525602a867c1f64d742a558ec7.tar.bz2
scummvm-rg350-5d63b3abb5eb85525602a867c1f64d742a558ec7.zip
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
-rw-r--r--engines/hdb/map-loader.cpp6
-rw-r--r--engines/hdb/map-loader.h6
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;
};