summaryrefslogtreecommitdiff
path: root/src/walklayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-24 18:28:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-24 21:06:51 +0300
commita306ecf96736779b08d1de7ec994d3d741d5dc61 (patch)
tree5a64809354d2c5f672a34fc9578975ab76920b5b /src/walklayer.cpp
parent6053e0797465a15da30b8d645c8ac7c95b596c69 (diff)
downloadplus-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.gz
plus-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.bz2
plus-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.xz
plus-a306ecf96736779b08d1de7ec994d3d741d5dc61.zip
fix code style.
Diffstat (limited to 'src/walklayer.cpp')
-rw-r--r--src/walklayer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/walklayer.cpp b/src/walklayer.cpp
index 6a18ba205..53ac31048 100644
--- a/src/walklayer.cpp
+++ b/src/walklayer.cpp
@@ -23,12 +23,12 @@
#include "debug.h"
WalkLayer::WalkLayer(const int width, const int height) :
+ Resource(),
mWidth(width),
- mHeight(height)
+ mHeight(height),
+ mTiles(new int[width * height])
{
- const int sz = width * height;
- mTiles = new int[sz];
- std::fill_n(mTiles, sz, 0);
+ std::fill_n(mTiles, width * height, 0);
}
WalkLayer::~WalkLayer()