mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix cache map load bug
* Fix bug where the version wasn't read correctly during cache map load. * Pass address of array to CIOStream Read wrapper.
This commit is contained in:
parent
053f284029
commit
9c2b2b681a
@ -497,7 +497,7 @@ bool SigDB_Init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
sigDbHeader.m_nVersion = sigDbStream.Read<int>();
|
sigDbHeader.m_nVersion = sigDbStream.Read<int>();
|
||||||
if (sigDbHeader.m_nMagic != SIGDB_VERSION)
|
if (sigDbHeader.m_nVersion != SIGDB_VERSION)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -509,7 +509,7 @@ bool SigDB_Init()
|
|||||||
|
|
||||||
vData.resize(nSize);
|
vData.resize(nSize);
|
||||||
uint8_t* pBuf = vData.data();
|
uint8_t* pBuf = vData.data();
|
||||||
sigDbStream.Read<uint8_t*>(pBuf, nSize);
|
sigDbStream.Read<uint8_t>(*pBuf, nSize);
|
||||||
|
|
||||||
if (!g_SigCache.m_Cache.ParseFromArray(pBuf, nSize))
|
if (!g_SigCache.m_Cache.ParseFromArray(pBuf, nSize))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user