mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Don't deserialise an array that's NULL
* This should only happen if serialisation corruption is detected, but in that case we don't want to crash.
This commit is contained in:
@@ -1921,7 +1921,7 @@ struct ScopedDeserialiseArray
|
||||
}
|
||||
~ScopedDeserialiseArray()
|
||||
{
|
||||
if(m_Ser.IsReading())
|
||||
if(m_Ser.IsReading() && *m_El)
|
||||
{
|
||||
for(uint64_t i = 0; i < count; i++)
|
||||
Deserialise((*m_El)[i]);
|
||||
|
||||
Reference in New Issue
Block a user