bad apple!!

This commit is contained in:
ElBread3 2024-10-04 14:44:05 -05:00
parent e04b4d1f9d
commit ae33b8ccce

View file

@ -45,9 +45,7 @@ public:
int icon_size;
static float parseAsFloat(const std::string& str, const int& offset) {
float num;
std::from_chars(str.data(), str.data() + str.size() - offset, num);
return num;
return std::stof(str.substr(0, str.size() - offset));
}
static float parseSizeMB(const std::string& size) {