Fix ArtModel crashing when loading data
This commit is contained in:
parent
3014b64019
commit
914bf53cf1
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ ArtModel::ArtModel(const QDir &definitionDirectory, const QDir &assetDirectory,
|
||||||
|
|
||||||
beginInsertRows(QModelIndex(), m_artPieces.size(), m_artPieces.size() + 1);
|
beginInsertRows(QModelIndex(), m_artPieces.size(), m_artPieces.size() + 1);
|
||||||
|
|
||||||
m_artPieces.resize(m_artPieces.size());
|
m_artPieces.push_back({});
|
||||||
|
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue