From d39f77f0b3d42664f4b1347025968a1cb7cdf88b Mon Sep 17 00:00:00 2001 From: cutealien Date: Mon, 31 Dec 2012 00:29:25 +0000 Subject: [PATCH] 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 --- include/IGUIElement.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/IGUIElement.h b/include/IGUIElement.h index 40df4465..ee56d930 100644 --- a/include/IGUIElement.h +++ b/include/IGUIElement.h @@ -841,7 +841,7 @@ protected: if (NoClip) { IGUIElement* p=this; - while (p && p->Parent) + while (p->Parent) p = p->Parent; parentAbsoluteClip = p->AbsoluteClippingRect; }