From b1f3056536b94b17063674bf1100af9cc819df31 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 25 Feb 2017 13:22:40 +0100 Subject: [PATCH] [News] Fix error --- src/Components/Modules/News.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Components/Modules/News.cpp b/src/Components/Modules/News.cpp index 25280017..629b3f08 100644 --- a/src/Components/Modules/News.cpp +++ b/src/Components/Modules/News.cpp @@ -116,7 +116,7 @@ namespace Components std::string error; json11::Json client = json11::Json::parse(_client.data(), error); - int revisionNumber = 0; + int revisionNumber; if (client["revision"].is_number()) { @@ -171,7 +171,6 @@ namespace Components { News::UpdaterArgs.clear(); News::UpdaterHash.clear(); - News::UpdaterRefresh = 0; if (ZoneBuilder::IsEnabled() || Dedicated::IsEnabled()) return; // Maybe also dedi? Dvar::Register("g_firstLaunch", true, Game::DVAR_FLAG_SAVED, "");