Skip to content

Commit

Permalink
Try fix build crash #3
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed Sep 2, 2024
1 parent b3830a7 commit 847cc63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/states_screens/online/online_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ void OnlineScreen::init()

void OnlineScreen::loadList()
{
#ifndef SERVER_ONLY

int news_count = NewsManager::get()->getNewsCount(NewsManager::NTYPE_MAINMENU);

int last_shown_id = UserConfigParams::m_news_list_shown_id;
Expand Down Expand Up @@ -187,6 +189,8 @@ void OnlineScreen::loadList()
}

UserConfigParams::m_news_list_shown_id = last_shown_id;

#endif
}

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit 847cc63

Please sign in to comment.