summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-10-26 10:40:07 +0200
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-10-26 10:41:16 +0200
commit1007dc9754b05fe83c720096cfbea6cb55158e0f (patch)
tree5e371c4bf068cf3500f46fea4f8ccd61076abc4f /src
parent8ca818f1ced7f5ad13aeb184974c9f0875d6ac1a (diff)
downloadqtlocation-mapboxgl-1007dc9754b05fe83c720096cfbea6cb55158e0f.tar.gz
[core] Initialize attributes before using them
Spotted by valgrind.
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/map/vector_tile_data.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/map/vector_tile_data.cpp b/src/mbgl/map/vector_tile_data.cpp
index 048e7083bf..3fe96599d6 100644
--- a/src/mbgl/map/vector_tile_data.cpp
+++ b/src/mbgl/map/vector_tile_data.cpp
@@ -28,7 +28,9 @@ VectorTileData::VectorTileData(const TileID& id_,
std::make_unique<CollisionTile>(angle, pitch, collisionDebug)),
source(source_),
lastAngle(angle),
- currentAngle(angle) {
+ currentAngle(angle),
+ currentPitch(pitch),
+ currentCollisionDebug(collisionDebug) {
}
VectorTileData::~VectorTileData() {