[News] Fix error
This commit is contained in:
parent
ad47c581d1
commit
b1f3056536
@ -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, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user