Fix crash when constructing C4ConsoleQtDefinitionListViewer

qteditor
Armin Burgmeier 2016-03-25 14:16:43 -07:00
parent 4290038909
commit 56545dc5f3
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ void C4ConsoleQtDefinitionListModel::ReInit()
{
std::unique_ptr<DefListNode> tmp(new_root->items[0].release());
root.reset(tmp.release());
new_root = root.get();
}
// Sort everything by display name (recursively)
root->SortByName();