Skip to content

Commit 549cbce

Browse files
committed
Clear buffer if process is null.
1 parent 909755c commit 549cbce

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

ReClass.NET/Memory/MemoryBuffer.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,14 @@ public void Update(IntPtr address)
9393

9494
public void Update(IntPtr address, bool setHistory)
9595
{
96-
Contract.Requires(Process != null);
96+
if (Process == null)
97+
{
98+
data.FillWithZero();
99+
100+
hasHistory = false;
101+
102+
return;
103+
}
97104

98105
if (setHistory)
99106
{

0 commit comments

Comments
 (0)