summaryrefslogtreecommitdiff
path: root/src/resources/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-29 14:55:40 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-29 14:55:40 +0300
commit4c6264db7ad4f0ae8a6c001903b47741abb94d8c (patch)
treea4e95239130dc4b86d036acd10c95f5fe3b96999 /src/resources/map
parentf6e76f469a81ff2d9e3714d39d1a8f4012cda2b8 (diff)
downloadmv-4c6264db7ad4f0ae8a6c001903b47741abb94d8c.tar.gz
mv-4c6264db7ad4f0ae8a6c001903b47741abb94d8c.tar.bz2
mv-4c6264db7ad4f0ae8a6c001903b47741abb94d8c.tar.xz
mv-4c6264db7ad4f0ae8a6c001903b47741abb94d8c.zip
Fix code style.
Diffstat (limited to 'src/resources/map')
-rw-r--r--src/resources/map/objectslayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/map/objectslayer.cpp b/src/resources/map/objectslayer.cpp
index b121fbcf9..87fe11a94 100644
--- a/src/resources/map/objectslayer.cpp
+++ b/src/resources/map/objectslayer.cpp
@@ -79,6 +79,6 @@ MapObjectList *ObjectsLayer::getAt(const unsigned x, const unsigned y) const
int ObjectsLayer::calcMemoryLocal() const
{
- return sizeof(ObjectsLayer) +
- (sizeof(MapObjectList) + sizeof(MapObjectList*)) * mWidth * mHeight;
+ return CAST_S32(sizeof(ObjectsLayer) +
+ (sizeof(MapObjectList) + sizeof(MapObjectList*)) * mWidth * mHeight);
}