Fix crash when memory stream reading fails and perform soft error handling

#3612
This commit is contained in:
Wojtek Figat
2025-08-15 14:19:59 +02:00
parent 774b6bd72c
commit f21accd466
5 changed files with 10 additions and 6 deletions

View File

@@ -656,7 +656,7 @@ bool SkinnedModel::LoadHeader(ReadStream& stream, byte& headerVersion)
}
}
return false;
return stream.HasError();
}
#if USE_EDITOR