diff --git a/Source/UI/Buttons/UICheckBox.cpp b/Source/UI/Buttons/UICheckBox.cpp index 882dc1f8..c104da9c 100644 --- a/Source/UI/Buttons/UICheckBox.cpp +++ b/Source/UI/Buttons/UICheckBox.cpp @@ -55,13 +55,10 @@ void UICheckBox::Paint() { // INLINED __forceinline void UICheckBox::Notify() { this->Invalidate(); - UIWindow* root = this; - - while (root->parent) { - root = root->parent; + if (this->Root()) { + this->Root()->Invalidate(); } - root->Invalidate(); if (this->parent) { this->parent->SendMsg(this, 6, this->geometry.id, this->geometry.unknown_0030, 0, 0); }