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,14 +303,15 @@ void Widget::resize()
{
assert(m_magic_number == 0xCAFEC001);
if (m_element)
moveIrrlichtElement();
moveIrrlichtElement();
}
// -----------------------------------------------------------------------------
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;