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; }