summaryrefslogtreecommitdiff
path: root/src/resources/map/objectslayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-10 16:40:52 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-10 16:40:52 +0300
commit4df1e68047488ec00a264c076bb3222715f42295 (patch)
tree22ea99ebcd00a6c9d6da0729706b765a49085c5f /src/resources/map/objectslayer.cpp
parentbfc5d7483c0a81409ebf08603f634e88b8db03f8 (diff)
downloadmv-4df1e68047488ec00a264c076bb3222715f42295.tar.gz
mv-4df1e68047488ec00a264c076bb3222715f42295.tar.bz2
mv-4df1e68047488ec00a264c076bb3222715f42295.tar.xz
mv-4df1e68047488ec00a264c076bb3222715f42295.zip
Fix new style issue detected by mplint.
new class() -> new class
Diffstat (limited to 'src/resources/map/objectslayer.cpp')
-rw-r--r--src/resources/map/objectslayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/map/objectslayer.cpp b/src/resources/map/objectslayer.cpp
index 0495f4e7a..a100b2c7d 100644
--- a/src/resources/map/objectslayer.cpp
+++ b/src/resources/map/objectslayer.cpp
@@ -64,7 +64,7 @@ void ObjectsLayer::addObject(const std::string &name, const int type,
for (unsigned i = idx1; i < idx2; i ++)
{
if (!mTiles[i])
- mTiles[i] = new MapObjectList();
+ mTiles[i] = new MapObjectList;
mTiles[i]->objects.push_back(MapObject(type, name));
}
}