zxs 1 month ago
parent
commit
d0c438f3b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      robot/robotics/mvc.hpp

+ 1 - 1
robot/robotics/mvc.hpp

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