mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
cleanup
This commit is contained in:
parent
e2a6fc581b
commit
63b8540ea7
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ CardInfoPtr CardDatabase::getCardBySimpleName(const QString &cardName) const
|
||||||
*/
|
*/
|
||||||
CardInfoPtr CardDatabase::guessCard(const CardRef &cardRef) const
|
CardInfoPtr CardDatabase::guessCard(const CardRef &cardRef) const
|
||||||
{
|
{
|
||||||
CardInfoPtr temp = cardRef.providerId.isEmpty() ? getCardInfo(cardRef.name) : getCard(cardRef);
|
CardInfoPtr temp = getCard(cardRef);
|
||||||
|
|
||||||
if (temp == nullptr) { // get card by simple name instead
|
if (temp == nullptr) { // get card by simple name instead
|
||||||
temp = getCardBySimpleName(cardRef.name);
|
temp = getCardBySimpleName(cardRef.name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue