From 81f0116071e36f6980bdcc436cf30a63ab1b8b02 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 19 Feb 2017 10:44:45 +0100 Subject: [PATCH] [Friends] Correctly store cache --- src/Components/Modules/Friends.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Components/Modules/Friends.cpp b/src/Components/Modules/Friends.cpp index 6a6481bb..68112e7b 100644 --- a/src/Components/Modules/Friends.cpp +++ b/src/Components/Modules/Friends.cpp @@ -437,6 +437,9 @@ namespace Components { std::lock_guard _(Friends::Mutex); + // Only store our cache if we are logged in, otherwise it might be invalid + if (!Steam::Proxy::SteamUser_ || !Steam::Proxy::SteamUser_->LoggedOn()) return; + Proto::Friends::List list; for(auto entry : Friends::FriendsList) {