Commit d39f77f0 authored by cutealien's avatar cutealien

Remove superfluous check in IGUIElement::recalculateAbsolutePosition (found by cppcheck utility).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4421 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 6f3942e5
...@@ -841,7 +841,7 @@ protected: ...@@ -841,7 +841,7 @@ protected:
if (NoClip) if (NoClip)
{ {
IGUIElement* p=this; IGUIElement* p=this;
while (p && p->Parent) while (p->Parent)
p = p->Parent; p = p->Parent;
parentAbsoluteClip = p->AbsoluteClippingRect; parentAbsoluteClip = p->AbsoluteClippingRect;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment