summaryrefslogtreecommitdiff
path: root/src/resources/map/objectslayer.cpp
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/objectslayer.cpp
parentf6e76f469a81ff2d9e3714d39d1a8f4012cda2b8 (diff)
downloadplus-4c6264db7ad4f0ae8a6c001903b47741abb94d8c.tar.gz
plus-4c6264db7ad4f0ae8a6c001903b47741abb94d8c.tar.bz2
plus-4c6264db7ad4f0ae8a6c001903b47741abb94d8c.tar.xz
plus-4c6264db7ad4f0ae8a6c001903b47741abb94d8c.zip
Fix code style.
Diffstat (limited to 'src/resources/map/objectslayer.cpp')
-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);
}