mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-26 21:20:57 +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 != 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());
|
Printf("Error saving nodes to file %s\n", path.GetChars());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue