diff --git a/apps/openmw-mp/Script/Functions/Cells.cpp b/apps/openmw-mp/Script/Functions/Cells.cpp index acb61013b..6e3c5d239 100644 --- a/apps/openmw-mp/Script/Functions/Cells.cpp +++ b/apps/openmw-mp/Script/Functions/Cells.cpp @@ -113,9 +113,9 @@ void CellFunctions::SaveMapTileImageFile(unsigned short pid, unsigned int i, con const std::vector& imageData = player->mapChanges.mapTiles.at(i).imageData; - std::ofstream output_file(filePath, std::ios::binary); - std::ostream_iterator output_iterator(output_file); - std::copy(imageData.begin(), imageData.end(), output_iterator); + std::ofstream outputFile(filePath, std::ios::binary); + std::ostream_iterator outputIterator(outputFile); + std::copy(imageData.begin(), imageData.end(), outputIterator); } int CellFunctions::GetMapTileCellX(unsigned short pid, unsigned int i) noexcept @@ -169,8 +169,8 @@ void CellFunctions::LoadMapTileImageFile(unsigned short pid, int cellX, int cell mapTile.x = cellX; mapTile.y = cellY; - std::ifstream fin(filePath, std::ios::binary); - mapTile.imageData = std::vector(std::istreambuf_iterator(fin), std::istreambuf_iterator()); + std::ifstream inputFile(filePath, std::ios::binary); + mapTile.imageData = std::vector(std::istreambuf_iterator(inputFile), std::istreambuf_iterator()); player->mapChanges.mapTiles.push_back(mapTile); }