Fix crash when trying to read a non existing .binpack file.

This commit is contained in:
Tomasz Sobczyk
2020-10-22 11:16:41 +02:00
committed by nodchip
parent 11b28ad3b5
commit 886467e09f

View File

@@ -6141,6 +6141,11 @@ namespace binpack
[[nodiscard]] bool hasNextChunk()
{
if (!m_file)
{
return false;
}
m_file.peek();
return !m_file.eof();
}