From f3d00667c5a1bffa5a04d5e86676caca6979b58d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 May 2016 19:18:09 +0300 Subject: Fix code style. --- src/resources/map/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/map/map.cpp') diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 51bd7952c..ee4e0dc59 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -1701,7 +1701,7 @@ void Map::updateConditionLayers() restrict2 int Map::calcMemoryLocal() const { - return sizeof(Map) + + return static_cast(sizeof(Map) + mName.capacity() + sizeof(MetaTile) * mWidth * mHeight + sizeof(MapLayer*) * (mLayers.capacity() + @@ -1714,7 +1714,7 @@ int Map::calcMemoryLocal() const sizeof(ParticleEffectData) * mParticleEffects.capacity() + sizeof(MapItem) * mMapPortals.capacity() + (sizeof(TileAnimation) + sizeof(int)) * mTileAnimations.size() + - sizeof(Tileset*) * mIndexedTilesetsSize; + sizeof(Tileset*) * mIndexedTilesetsSize); } int Map::calcMemoryChilds(const int level) const -- cgit v1.2.3-70-g09d2