[News] Fix error

This commit is contained in:
momo5502 2017-02-25 13:22:40 +01:00
parent ad47c581d1
commit b1f3056536

View File

@ -116,7 +116,7 @@ namespace Components
std::string error; std::string error;
json11::Json client = json11::Json::parse(_client.data(), error); json11::Json client = json11::Json::parse(_client.data(), error);
int revisionNumber = 0; int revisionNumber;
if (client["revision"].is_number()) if (client["revision"].is_number())
{ {
@ -171,7 +171,6 @@ namespace Components
{ {
News::UpdaterArgs.clear(); News::UpdaterArgs.clear();
News::UpdaterHash.clear(); News::UpdaterHash.clear();
News::UpdaterRefresh = 0;
if (ZoneBuilder::IsEnabled() || Dedicated::IsEnabled()) return; // Maybe also dedi? if (ZoneBuilder::IsEnabled() || Dedicated::IsEnabled()) return; // Maybe also dedi?
Dvar::Register<bool>("g_firstLaunch", true, Game::DVAR_FLAG_SAVED, ""); Dvar::Register<bool>("g_firstLaunch", true, Game::DVAR_FLAG_SAVED, "");