aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/Game.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2020-06-23 20:50:16 +0300
committerlevlam <levlam@telegram.org>2020-06-23 20:50:16 +0300
commitef04c17a8956029572a19f588d17438fcc760120 (patch)
tree7cf1736b36d195b0789f91db1e5ea43990701e53 /td/telegram/Game.cpp
parentb02b578ab97bc480d5330e8029860701919f67a0 (diff)
Init photo ID to invalid by default.
GitOrigin-RevId: 072cd8bbd87267e086ed9a280ba5238e5e231a84
Diffstat (limited to 'td/telegram/Game.cpp')
-rw-r--r--td/telegram/Game.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/td/telegram/Game.cpp b/td/telegram/Game.cpp
index 36e37dfaf..c6ceac21e 100644
--- a/td/telegram/Game.cpp
+++ b/td/telegram/Game.cpp
@@ -58,6 +58,7 @@ Game::Game(UserId bot_user_id, string short_name) : bot_user_id_(bot_user_id), s
if (!bot_user_id_.is_valid()) {
bot_user_id_ = UserId();
}
+ photo_.id = 0; // to prevent null photo in td_api
}
bool Game::empty() const {