diff --git a/core/src/server.cpp b/core/src/server.cpp index 11ed1d2..c34e7f8 100644 --- a/core/src/server.cpp +++ b/core/src/server.cpp @@ -323,7 +323,7 @@ int Server::getCharID(QString char_name) { for (const QString &character : qAsConst(m_characters)) { 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