forked from OpenGamers/abaddon
fix UB
This commit is contained in:
parent
46b88566f1
commit
271d21c7bd
@ -17,7 +17,7 @@ bool UserData::HasAnimatedAvatar(Snowflake guild_id) const {
|
||||
const auto member = Abaddon::Get().GetDiscordClient().GetMember(ID, guild_id);
|
||||
if (member.has_value() && member->Avatar.has_value() && member->Avatar.value()[0] == 'a' && member->Avatar.value()[1] == '_')
|
||||
return true;
|
||||
else if (!member->Avatar.has_value())
|
||||
else if (member.has_value() && !member->Avatar.has_value())
|
||||
return HasAnimatedAvatar();
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user