Skip to content

Commit

Permalink
fix allow increase/decrease from not working well with 8 byte values
Browse files Browse the repository at this point in the history
  • Loading branch information
cheat-engine committed Apr 29, 2018
1 parent 0ab83f6 commit 1ec74f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cheat Engine/MemoryRecordUnit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2535,13 +2535,13 @@ procedure TMemoryRecord.ApplyFreeze;

if showAsHex then
begin
newdecimalvalue:=StrToInt('$'+newvalue);
olddecimalvalue:=StrToInt('$'+oldvalue);
newdecimalvalue:=StrToQWordEx('$'+newvalue);
olddecimalvalue:=StrToQWordEx('$'+oldvalue);
end
else
begin
newdecimalvalue:=StrToInt(newvalue);
olddecimalvalue:=StrToInt(oldvalue);
newdecimalvalue:=StrToQWordEx(newvalue);
olddecimalvalue:=StrToQWordEx(oldvalue);
end;

if (allowIncrease and (newdecimalvalue>olddecimalvalue)) or
Expand Down

0 comments on commit 1ec74f1

Please sign in to comment.