Skip to content

Commit e5ff233

Browse files
committed
Initialize m_pos.z to zero
1 parent 1415271 commit e5ff233

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • Core/GameEngine/Source/GameClient

Core/GameEngine/Source/GameClient/View.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ View::View()
5858
m_snapImmediate = FALSE;
5959
m_terrainHeightAtPivot = 0.0f;
6060
m_zoom = 0.0f;
61-
m_pos.x = 0;
62-
m_pos.y = 0;
61+
m_pos.zero();
6362
m_width = 0;
6463
m_height = 0;
6564
m_angle = 0.0f;
@@ -90,8 +89,7 @@ void View::init()
9089
m_height = DEFAULT_VIEW_HEIGHT;
9190
m_originX = DEFAULT_VIEW_ORIGIN_X;
9291
m_originY = DEFAULT_VIEW_ORIGIN_Y;
93-
m_pos.x = 0;
94-
m_pos.y = 0;
92+
m_pos.zero();
9593
m_angle = 0.0f;
9694
m_cameraLock = INVALID_ID;
9795
m_cameraLockDrawable = nullptr;

0 commit comments

Comments
 (0)