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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EmoteName code;
|
QString _code;
|
||||||
if (!rj::getSafe(emoteJSON, "code", code)) {
|
if (!rj::getSafe(emoteJSON, "code", _code)) {
|
||||||
Log("No code key found in Emote value");
|
Log("No code key found in Emote value");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto code = EmoteName{_code};
|
||||||
auto id = EmoteId{QString::number(idNumber)};
|
auto id = EmoteId{QString::number(idNumber)};
|
||||||
|
|
||||||
auto cleanCode = cleanUpCode(code);
|
auto cleanCode = cleanUpCode(code);
|
||||||
|
|
Loading…
Reference in a new issue