mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
Fixed error check when saving GL nodes
This commit is contained in:
parent
acc943329b
commit
724c997695
1 changed files with 2 additions and 1 deletions
|
@ -1137,7 +1137,8 @@ static void CreateCachedNodes(MapData *map)
|
|||
|
||||
if (fw != nullptr)
|
||||
{
|
||||
if (fw->Write(compressed, outlen+offset) != 1)
|
||||
const size_t length = outlen + offset;
|
||||
if (fw->Write(compressed, length) != length)
|
||||
{
|
||||
Printf("Error saving nodes to file %s\n", path.GetChars());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue