summaryrefslogtreecommitdiffstats
path: root/Project/Element.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2017-01-05 19:31:28 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2017-01-05 19:31:28 -0200
commitb6f96ca48bc156898df79deba63d270b393fb150 (patch)
tree9c6e2fa2a45d6c6c4c14d8711b2b89066bfb37d7 /Project/Element.cpp
parenta1932eec23589ed67d824873b37de3e83a09cd24 (diff)
downloadPSP.git-b6f96ca48bc156898df79deba63d270b393fb150.tar.gz
PSP.git-b6f96ca48bc156898df79deba63d270b393fb150.tar.xz
PSP.git-b6f96ca48bc156898df79deba63d270b393fb150.zip
Text bugs fixed
Diffstat (limited to 'Project/Element.cpp')
-rw-r--r--Project/Element.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Project/Element.cpp b/Project/Element.cpp
index f0812d1..53eaa26 100644
--- a/Project/Element.cpp
+++ b/Project/Element.cpp
@@ -462,10 +462,7 @@ void Element::RemoveChild(Element* child)
{
for(auto it = m_childList.begin(); it != m_childList.end(); ++it) {
Element* element = *it;
- if(element == child){
- m_childList.erase(it);
- break;
- }
+ if(element == child) m_childList.erase(it--);
}
}