mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 11:36:51 +08: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()
|
||||
{
|
||||
if (!m_file)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
m_file.peek();
|
||||
return !m_file.eof();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user