Fix crash in CompressionUtil::DecompressLZO

Fix invalid ActorMultiKeyFrame template reference
This commit is contained in:
Phillip Stephens 2019-05-26 22:23:54 -07:00
parent 28f96e91c2
commit 7819b07df5
2 changed files with 4 additions and 2 deletions

View File

@ -105,7 +105,9 @@ namespace CompressionUtil
bool DecompressLZO(uint8 *pSrc, uint32 SrcLen, uint8 *pDst, uint32& rTotalOut)
{
#if USE_LZOKAY
lzokay::EResult Result = lzokay::decompress(pSrc, (size_t) SrcLen, pDst, (size_t&) rTotalOut);
size_t TotalOut = rTotalOut;
lzokay::EResult Result = lzokay::decompress(pSrc, (size_t) SrcLen, pDst, TotalOut);
rTotalOut = TotalOut;
if (Result < lzokay::EResult::Success)
{

View File

@ -35,7 +35,7 @@
</Element>
<Element>
<Key>AMKF</Key>
<Value Path="Script/ActorMultiKeyframe.xml"/>
<Value Path="Script/ActorMultiKeyFrame.xml"/>
</Element>
<Element>
<Key>AOCL</Key>