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:
Deve
2014-12-23 18:31:44 +01:00
parent 8e142daa00
commit b02812662a

View File

@@ -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++)