diff --git a/td/telegram/AnimationsManager.cpp b/td/telegram/AnimationsManager.cpp index 46dd45c93..e4d2dc201 100644 --- a/td/telegram/AnimationsManager.cpp +++ b/td/telegram/AnimationsManager.cpp @@ -261,7 +261,7 @@ FileId AnimationsManager::dup_animation(FileId new_id, FileId old_id) { const Animation *old_animation = get_animation(old_id); CHECK(old_animation != nullptr); auto &new_animation = animations_[new_id]; - CHECK(!new_animation); + CHECK(new_animation == nullptr); new_animation = make_unique(*old_animation); new_animation->file_id = new_id; new_animation->thumbnail.file_id = td_->file_manager_->dup_file_id(new_animation->thumbnail.file_id); diff --git a/td/telegram/AudiosManager.cpp b/td/telegram/AudiosManager.cpp index ce888f45a..902c5ef8a 100644 --- a/td/telegram/AudiosManager.cpp +++ b/td/telegram/AudiosManager.cpp @@ -97,7 +97,7 @@ FileId AudiosManager::dup_audio(FileId new_id, FileId old_id) { const Audio *old_audio = get_audio(old_id); CHECK(old_audio != nullptr); auto &new_audio = audios_[new_id]; - CHECK(!new_audio); + CHECK(new_audio == nullptr); new_audio = make_unique