mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 19:47:46 -07:00
fix: typo
This commit is contained in:
parent
7d190ddaf7
commit
e8abd6eb63
1 changed files with 2 additions and 2 deletions
|
|
@ -719,8 +719,8 @@ void CardDatabase::loadCardsFromXml(QXmlStreamReader &xml)
|
||||||
|
|
||||||
CardInfo *CardNameMap::findByPrefix(const std::string &prefix) {
|
CardInfo *CardNameMap::findByPrefix(const std::string &prefix) {
|
||||||
for (CardNameMap::iterator it = this->begin(); it != this->end(); ++it) {
|
for (CardNameMap::iterator it = this->begin(); it != this->end(); ++it) {
|
||||||
auto std::mismatch(prefix.begin(), prefix.end(), it.key().toStdString().begin())
|
auto check = std::mismatch(prefix.begin(), prefix.end(), it.key().toStdString().begin())
|
||||||
if (auto.first == prefix.end())
|
if (check.first == prefix.end())
|
||||||
return it.value();
|
return it.value();
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue