diff --git a/src/map.cpp b/src/map.cpp index 4029d23358d..55ee96934b3 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -674,7 +674,7 @@ static void SetDecals(const char *filename, const char *decal_type) pFileData = strchr(pFileData, '\n') + 1; // value initialization sets everything to false. mapDecals = std::make_unique(MAX_TERRAIN_TILES); - + for (i = 0; i < numlines; i++) { tiledecal = -1; @@ -1011,7 +1011,7 @@ bool mapLoadFromWzMapData(std::shared_ptr loadedMap) ASSERT(psMapTiles == nullptr, "Map has not been cleared before calling mapLoad()!"); /* Allocate the memory for the map */ - psMapTiles = std::make_unique(width * height); + psMapTiles = std::make_unique(static_cast(width) * height); ASSERT(psMapTiles != nullptr, "Out of memory"); mapWidth = width;