Skip to content

Commit

Permalink
fix unregistersymbol in AA when no disableinfo is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
cheat-engine committed Jan 12, 2022
1 parent 77464b0 commit e9e1053
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cheat Engine/autoassembler.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,7 @@ type tdefine=record


strictmode:=false;
hastryexcept:=false;
for i:=0 to code.count-1 do
begin
currentline:=uppercase(TrimRight(code[i]));
Expand Down Expand Up @@ -2347,7 +2348,7 @@ type tdefine=record



if (disableinfo<>nil) and (uppercase(copy(currentline,1,17))='UNREGISTERSYMBOL(') then
if uppercase(copy(currentline,1,17))='UNREGISTERSYMBOL(' then
begin
//add this symbol to the register symbollist
a:=pos('(',currentline);
Expand All @@ -2357,7 +2358,7 @@ type tdefine=record
begin
s1:=trim(copy(currentline,a+1,b-a-1));

if s1='*' then
if (disableinfo<>nil) and (s1='*') then
begin
j:=length(deletesymbollist);
setlength(deletesymbollist, j+ disableinfo.registeredsymbols.Count);
Expand Down

0 comments on commit e9e1053

Please sign in to comment.