NIFStream: don't read vectors of zero length

macos_ci_fix
Alexei Kotov 1 year ago
parent d078907dcb
commit 6dca3e68a6

@ -107,6 +107,8 @@ namespace Nif
template <class T>
void readVector(std::vector<T>& vec, size_t size)
{
if (size == 0)
return;
vec.resize(size);
read(vec.data(), size);
}

Loading…
Cancel
Save