Remove unneeded if in Widget::resize

This commit is contained in:
CodingJellyfish 2024-04-21 14:40:10 +08:00
parent 0d2fd6f628
commit 34119e1c5f

View File

@ -303,7 +303,6 @@ void Widget::resize()
{
assert(m_magic_number == 0xCAFEC001);
if (m_element)
moveIrrlichtElement();
}
@ -311,6 +310,8 @@ void Widget::resize()
void Widget::move(const int x, const int y, const int w, const int h)
{
assert(m_magic_number == 0xCAFEC001);
m_x = x;
m_y = y;
m_w = w;