diff --git a/src/Components/Modules/Changelog.cpp b/src/Components/Modules/Changelog.cpp index 376c855f..83cc10c0 100644 --- a/src/Components/Modules/Changelog.cpp +++ b/src/Components/Modules/Changelog.cpp @@ -6,12 +6,20 @@ namespace Components void Changelog::LoadChangelog(UIScript::Token) { + if (!Changelog::Line.empty()) + return; + std::vector changelog; Changelog::Line.clear(); { std::string uncleaned = Utils::Cache::GetFile("/iw4/changelog.txt"); + if (uncleaned.empty()) + { + uncleaned = "\n\n^1Unable to get changelog."; + } + changelog = Utils::String::Explode(uncleaned, '\n'); }