Fix #248: the token dialog generates cards irrespective of their case and punctation.
This commit is contained in:
parent
ffed0e00fe
commit
309494111c
1 changed files with 4 additions and 0 deletions
|
@ -959,6 +959,10 @@ void Player::actCreateToken()
|
|||
return;
|
||||
|
||||
lastTokenName = dlg.getName();
|
||||
if (CardInfo *correctedCard = db->getCardBySimpleName(lastTokenName, false)) {
|
||||
lastTokenName = correctedCard->getName();
|
||||
}
|
||||
|
||||
lastTokenColor = dlg.getColor();
|
||||
lastTokenPT = dlg.getPT();
|
||||
lastTokenAnnotation = dlg.getAnnotation();
|
||||
|
|
Loading…
Reference in a new issue