Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 76d8923

Browse files
committed
Zpos -> zPos in GUIPanel.cpp
1 parent 580c1c6 commit 76d8923

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

GUI/GUIPanel.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,10 @@ void GUIPanel::AddChild(GUIPanel *child, bool convertToAbsolutePos)
127127
child->m_Width = std::max(child->m_Width, 0);
128128
child->m_Height = std::max(child->m_Height, 0);
129129

130-
int Zpos = 0;
131-
// Get the last child in the list
130+
int zPos = 0;
132131
if (m_Children.size() > 0) {
133132
GUIPanel *lastChild = m_Children.back();
134-
Zpos = lastChild->GetZPos() + 1;
133+
zPos = lastChild->GetZPos() + 1;
135134
}
136135

137136
// Remove the child from any previous parent
@@ -141,7 +140,7 @@ void GUIPanel::AddChild(GUIPanel *child, bool convertToAbsolutePos)
141140

142141
// Setup the inherited values
143142
child->m_Parent = this;
144-
child->Setup(m_Manager, Zpos);
143+
child->Setup(m_Manager, zPos);
145144

146145
// Add the child to the list
147146
m_Children.push_back(child);

0 commit comments

Comments
 (0)