mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
Fix crash when trying to read a non existing .binpack file.
This commit is contained in:
@@ -6141,6 +6141,11 @@ namespace binpack
|
|||||||
|
|
||||||
[[nodiscard]] bool hasNextChunk()
|
[[nodiscard]] bool hasNextChunk()
|
||||||
{
|
{
|
||||||
|
if (!m_file)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
m_file.peek();
|
m_file.peek();
|
||||||
return !m_file.eof();
|
return !m_file.eof();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user