fix hint crash on windows (#4227)

This commit is contained in:
Pepper0ni 2024-07-09 23:57:28 +01:00 committed by GitHub
parent 7a17fe221f
commit 77770ba3b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,7 +184,7 @@ CustomMessage CustomMessage::operator+(const CustomMessage& right) const {
newColors.push_back(color); newColors.push_back(color);
} }
std::vector<bool> newCapital = capital; std::vector<bool> newCapital = capital;
newCapital.insert(capital.end(), right.GetCapital().begin(), right.GetCapital().end()); newCapital.insert(newCapital.end(), right.GetCapital().begin(), right.GetCapital().end());
return CustomMessage(messages[LANGUAGE_ENG] + right.GetEnglish(MF_RAW), return CustomMessage(messages[LANGUAGE_ENG] + right.GetEnglish(MF_RAW),
messages[LANGUAGE_GER] + right.GetGerman(MF_RAW), messages[LANGUAGE_GER] + right.GetGerman(MF_RAW),
messages[LANGUAGE_FRA] + right.GetFrench(MF_RAW), messages[LANGUAGE_FRA] + right.GetFrench(MF_RAW),