parent
0b35f11763
commit
5d9a5b1305
@ -323,7 +323,7 @@ int Server::getCharID(QString char_name)
|
|||||||
{
|
{
|
||||||
for (const QString &character : qAsConst(m_characters)) {
|
for (const QString &character : qAsConst(m_characters)) {
|
||||||
if (character.toLower() == char_name.toLower()) {
|
if (character.toLower() == char_name.toLower()) {
|
||||||
return m_characters.indexOf(QRegExp(character, Qt::CaseInsensitive));
|
return m_characters.indexOf(QRegExp(character, Qt::CaseInsensitive, QRegExp::FixedString));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return -1; // character does not exist
|
return -1; // character does not exist
|
||||||
|
Loading…
Reference in New Issue
Block a user