0-size buffer fix

This commit is contained in:
Jack Andersen 2017-10-27 21:08:17 -10:00
parent a2c5d891b5
commit 337e087182
2 changed files with 6 additions and 3 deletions

2
hecl/extern/athena vendored

@ -1 +1 @@
Subproject commit 0fa861b708ac836323aadc673407a9a81e714ddb Subproject commit 57e5196e726a4a53d55057130554cac812a40a61

View File

@ -984,8 +984,11 @@ private:
m_iboSz(iboData.size()*4), m_iboData(new uint8_t[iboData.size()*4]), m_iboSz(iboData.size()*4), m_iboData(new uint8_t[iboData.size()*4]),
m_surfaces(std::move(surfaces)), m_skinBanks(skinBanks) m_surfaces(std::move(surfaces)), m_skinBanks(skinBanks)
{ {
athena::io::MemoryWriter w(m_iboData.get(), m_iboSz); if (m_iboSz)
w.enumerateLittle(iboData); {
athena::io::MemoryWriter w(m_iboData.get(), m_iboSz);
w.enumerateLittle(iboData);
}
} }
public: public:
HMDLMeta m_meta; HMDLMeta m_meta;