Fixed crash in creating user screen, which occured after rename player.
It's a bit quick and lazy fix. Probably other variables should be cleared too.
This commit is contained in:
@@ -134,6 +134,7 @@ void Widget::elementRemoved()
|
||||
assert(m_magic_number == 0xCAFEC001);
|
||||
|
||||
m_element = NULL;
|
||||
m_is_visible = true;
|
||||
|
||||
// If any player focused this widget, unset that focus
|
||||
for (unsigned int n=0; n<MAX_PLAYER_COUNT; n++)
|
||||
|
||||
Reference in New Issue
Block a user