diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-24 18:28:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-24 21:06:51 +0300 |
commit | a306ecf96736779b08d1de7ec994d3d741d5dc61 (patch) | |
tree | 5a64809354d2c5f672a34fc9578975ab76920b5b /src/walklayer.cpp | |
parent | 6053e0797465a15da30b8d645c8ac7c95b596c69 (diff) | |
download | mv-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.gz mv-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.bz2 mv-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.xz mv-a306ecf96736779b08d1de7ec994d3d741d5dc61.zip |
fix code style.
Diffstat (limited to 'src/walklayer.cpp')
-rw-r--r-- | src/walklayer.cpp | 8 |
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() |