From 6f932fe2cb41d31037c2ec6cff1010ecf581c666 Mon Sep 17 00:00:00 2001 From: Jett <55758076+Jettford@users.noreply.github.com> Date: Thu, 16 Dec 2021 22:51:37 +0000 Subject: [PATCH] Spelling and set filestream mode --- dWorldServer/WorldServer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dWorldServer/WorldServer.cpp b/dWorldServer/WorldServer.cpp index 55e3efb2..92bc1889 100644 --- a/dWorldServer/WorldServer.cpp +++ b/dWorldServer/WorldServer.cpp @@ -240,15 +240,15 @@ int main(int argc, char** argv) { if (Game::config->GetValue("check_fdb") == "1") { std::ifstream fileStream; - static const std::vector alieses = { + static const std::vector aliases = { "res/CDServers.fdb", "res/cdserver.fdb", "res/CDClient.fdb", "res/cdclient.fdb", }; - for (const auto& file : alieses) { - fileStream.open(file); + for (const auto& file : aliases) { + fileStream.open(file, std::ios::binary | std::ios::in); if (fileStream.is_open()) { break; }