From a9dee2bec51230dae4fc37e03862d3feb851bd25 Mon Sep 17 00:00:00 2001 From: Deer McDurr Date: Thu, 19 Sep 2024 22:15:12 +0200 Subject: [PATCH] fix MaxPlayers using value of MaxCars --- src/TConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TConfig.cpp b/src/TConfig.cpp index 29eeafe..c556b04 100644 --- a/src/TConfig.cpp +++ b/src/TConfig.cpp @@ -139,7 +139,7 @@ void TConfig::FlushToFile() { SetComment(data["General"][StrTags.data()].comments(), " Add custom identifying tags to your server to make it easier to find. Format should be TagA,TagB,TagC. Note the comma seperation."); data["General"][StrTags.data()] = Application::Settings.getAsString(Settings::Key::General_Tags); data["General"][StrMaxCars.data()] = Application::Settings.getAsInt(Settings::Key::General_MaxCars); - data["General"][StrMaxPlayers.data()] = Application::Settings.getAsInt(Settings::Key::General_MaxCars); + data["General"][StrMaxPlayers.data()] = Application::Settings.getAsInt(Settings::Key::General_MaxPlayers); data["General"][StrMap.data()] = Application::Settings.getAsString(Settings::Key::General_Map); data["General"][StrDescription.data()] = Application::Settings.getAsString(Settings::Key::General_Description); data["General"][StrResourceFolder.data()] = Application::Settings.getAsString(Settings::Key::General_ResourceFolder);