diff --git a/src/Components/Modules/ServerList.cpp b/src/Components/Modules/ServerList.cpp index 25f792a8..8005f87b 100644 --- a/src/Components/Modules/ServerList.cpp +++ b/src/Components/Modules/ServerList.cpp @@ -723,7 +723,7 @@ namespace Components RefreshContainer.awatingList = false; Logger::Print("We haven't received a response from the master within {} seconds!\n", (Game::Sys_Milliseconds() - RefreshContainer.awaitTime) / 1000); - Toast::Show("cardicon_headshot", "^3Warning", "Failed to reach master server. Using node system instead.", 5000); + Toast::Show("net_disconnect", "^2Notice", "Master server could not be reached. Switching to decentralized network", 3000); UseMasterServer = false; Node::Synchronize(); diff --git a/src/Utils/IO.cpp b/src/Utils/IO.cpp index f24222dd..c8687e8b 100644 --- a/src/Utils/IO.cpp +++ b/src/Utils/IO.cpp @@ -46,12 +46,12 @@ namespace Utils::IO if (!stream.is_open()) return false; stream.seekg(0, std::ios::end); - std::streamsize size = stream.tellg(); + const std::streamsize size = stream.tellg(); stream.seekg(0, std::ios::beg); if (size > -1) { - data->resize(static_cast(size)); + data->resize(static_cast(size)); stream.read(data->data(), size); stream.close(); return true;