Skip to content

Commit

Permalink
fix IncreasedValueBy and DecreasedValueBy
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrinzPlayer committed Feb 7, 2016
1 parent 8b83be4 commit 6b7ee27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cheat Engine/memscan.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3723,6 +3723,8 @@ procedure TScanner.configurescanroutine;
td: double;
s: string;
begin
value:=0;
dvalue:=0;
maxfound:=buffersize;
{$ifdef customtypeimplemented}
if variableType = vtCustom then
Expand Down Expand Up @@ -4108,7 +4110,7 @@ procedure TScanner.configurescanroutine;
OutputDebugString('scanOption='+inttostr(integer(scanOption)));


if (scanOption in [soIncreasedValueBy, soDecreasedValueBy]) and (dvalue=0) then
if (scanOption in [soIncreasedValueBy, soDecreasedValueBy]) and (value=0) and (dvalue=0) then
scanOption:=soUnchanged;

case variableType of
Expand Down

0 comments on commit 6b7ee27

Please sign in to comment.