diff options
Diffstat (limited to 'src/resources/map')
-rw-r--r-- | src/resources/map/maplayer.cpp | 8 | ||||
-rw-r--r-- | src/resources/map/objectslayer.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index 57e49b3eb..4c6fe3a1e 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -230,7 +230,7 @@ void MapLayer::updateSDL(const Graphics *const graphics, for (int y = startY; y < endY; y++) { - MapRowVertexes *const row = new MapRowVertexes(); + MapRowVertexes *const row = new MapRowVertexes; mTempRows.push_back(row); const Image *lastImage = nullptr; @@ -252,7 +252,7 @@ void MapLayer::updateSDL(const Graphics *const graphics, { if (lastImage != img) { - imgVert = new ImageVertexes(); + imgVert = new ImageVertexes; imgVert->image = img; row->images.push_back(imgVert); lastImage = img; @@ -293,7 +293,7 @@ void MapLayer::updateOGL(Graphics *const graphics, const int dx = mPixelX - scrollX; const int dy = mPixelY - scrollY; - MapRowVertexes *const row = new MapRowVertexes(); + MapRowVertexes *const row = new MapRowVertexes; mTempRows.push_back(row); Image *lastImage = nullptr; ImageVertexes *imgVert = nullptr; @@ -330,7 +330,7 @@ void MapLayer::updateOGL(Graphics *const graphics, { if (lastImage) imgSet[lastImage->mGLImage] = imgVert; - imgVert = new ImageVertexes(); + imgVert = new ImageVertexes; imgVert->ogl.init(); imgVert->image = img; row->images.push_back(imgVert); 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)); } } |