Fix crashes if drawcall list goes away when log is closed

This commit is contained in:
baldurk
2017-07-19 15:34:49 +01:00
parent e005522152
commit 8a0432add9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ public:
const QList<PixelModification> &mods = getMods(parent);
const DrawcallDescription *draw = m_Ctx.GetDrawcall(mods.front().eventID);
if(draw->flags & DrawFlags::Clear)
if(draw && draw->flags & DrawFlags::Clear)
return 0;
return mods.count();