mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 09:22:15 -07:00
re-add missing null check
This commit is contained in:
parent
cdc6e97d98
commit
0d4d21b8ae
1 changed files with 4 additions and 0 deletions
|
|
@ -200,6 +200,10 @@ void SetList::guessSortKeys()
|
|||
defaultSort();
|
||||
for (int i = 0; i < size(); ++i) {
|
||||
CardSetPtr set = at(i);
|
||||
if (set.isNull()) {
|
||||
qDebug() << "guessSortKeys set is null";
|
||||
continue;
|
||||
}
|
||||
set->setSortKey(i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue