Fix crash

This commit is contained in:
Georg Hagen
2025-11-04 20:45:11 +01:00
parent 007a91763e
commit 5065260c4e

View File

@@ -199,6 +199,7 @@ namespace OpenVulkano
std::string fracStr = std::to_string(val);
fracStr.erase(fracStr.find_last_not_of('0') + 1, std::string::npos);
fracStr.erase(0, fracStr.find_first_of('.') + 1);
if (fracStr.empty()) return 0;
return std::stoul(fracStr);
}
}