diff --git a/Cronos The New Dawn/dllmain.cpp b/Cronos The New Dawn/dllmain.cpp index 2f80e15..1d88164 100644 --- a/Cronos The New Dawn/dllmain.cpp +++ b/Cronos The New Dawn/dllmain.cpp @@ -198,7 +198,7 @@ static void LoadSettings() else if (line.find(WORLD_FOV_SETTING) == 0) worldFOVvalue = std::stoi(line.substr(strlen(WORLD_FOV_SETTING))); else if (line.find(CAMERA_DISTANCE_SETTING) == 0) - cameraDistancevalue = std::stoi(line.substr(strlen(CAMERA_DISTANCE_SETTING))); + cameraDistancevalue = std::stof(line.substr(strlen(CAMERA_DISTANCE_SETTING))); } file.close(); }