mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-05 22:23:34 +00:00
Fix crash in CompressionUtil::DecompressLZO
Fix invalid ActorMultiKeyFrame template reference
This commit is contained in:
parent
28f96e91c2
commit
7819b07df5
@ -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)
|
||||
{
|
||||
|
@ -35,7 +35,7 @@
|
||||
</Element>
|
||||
<Element>
|
||||
<Key>AMKF</Key>
|
||||
<Value Path="Script/ActorMultiKeyframe.xml"/>
|
||||
<Value Path="Script/ActorMultiKeyFrame.xml"/>
|
||||
</Element>
|
||||
<Element>
|
||||
<Key>AOCL</Key>
|
||||
|
Loading…
x
Reference in New Issue
Block a user