Fix issues

This commit is contained in:
2023-11-22 16:25:44 +01:00
parent ffb7143c2d
commit 5393f2101a
3 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ namespace OpenVulkano
std::ifstream file(filePath, std::ios::ate | std::ios::binary);
if (!file.is_open())
{
if (emptyOnMissing) return { 0 };
if (emptyOnMissing) return {};
throw std::runtime_error("Failed to open file '" + filePath + "'!");
}
const size_t fileSize = static_cast<size_t>(file.tellg());