2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Save Data::Session* in GameData.

This commit is contained in:
John Preston
2021-10-11 21:46:51 +04:00
parent 2b11e45692
commit 01c1096c62
4 changed files with 17 additions and 19 deletions

View File

@@ -3041,7 +3041,7 @@ void Session::webpageApplyFields(
not_null<GameData*> Session::game(GameId id) {
auto i = _games.find(id);
if (i == _games.cend()) {
i = _games.emplace(id, std::make_unique<GameData>(id)).first;
i = _games.emplace(id, std::make_unique<GameData>(this, id)).first;
}
return i->second.get();
}