zxs 1 сар өмнө
parent
commit
d0c438f3b9

+ 1 - 1
robot/robotics/mvc.hpp

@@ -1342,7 +1342,7 @@ namespace robotics {
 					if (filepath.empty())
 					if (filepath.empty())
 						return "";
 						return "";
 					if (std::filesystem::exists(filepath)) {
 					if (std::filesystem::exists(filepath)) {
-						std::ifstream file(path, std::ios::in);
+						std::ifstream file(filepath, std::ios::in);
 						if (file.is_open()) {
 						if (file.is_open()) {
 							return std::string((std::istreambuf_iterator<char>(file)), std::istreambuf_iterator<char>());
 							return std::string((std::istreambuf_iterator<char>(file)), std::istreambuf_iterator<char>());
 						}
 						}