mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Fix segfault when oracle reads card without "num" field (#5654)
This commit is contained in:
parent
57e37e8f4d
commit
49932ee6f8
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ int OracleImporter::importCardsFromSet(const CardSetPtr ¤tSet, const QList
|
|||
|
||||
QString numComponent;
|
||||
const QString numProperty = setInfo.getProperty("num");
|
||||
const QChar lastChar = numProperty.at(numProperty.size() - 1);
|
||||
const QChar lastChar = numProperty.isEmpty() ? QChar() : numProperty.back();
|
||||
|
||||
// Un-Sets do some wonky stuff. Split up these cards as individual entries.
|
||||
if (setsWithCardsWithSameNameButDifferentText.contains(currentSet->getShortName()) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue