mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed crash
This commit is contained in:
parent
c26422aec1
commit
bfa75330a4
|
@ -444,12 +444,13 @@ void TwitchAccount::parseEmotes(const rapidjson::Document &root)
|
|||
return;
|
||||
}
|
||||
|
||||
EmoteName code;
|
||||
if (!rj::getSafe(emoteJSON, "code", code)) {
|
||||
QString _code;
|
||||
if (!rj::getSafe(emoteJSON, "code", _code)) {
|
||||
Log("No code key found in Emote value");
|
||||
return;
|
||||
}
|
||||
|
||||
auto code = EmoteName{_code};
|
||||
auto id = EmoteId{QString::number(idNumber)};
|
||||
|
||||
auto cleanCode = cleanUpCode(code);
|
||||
|
|
Loading…
Reference in a new issue