Skip to content

Commit

Permalink
fix context being invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
cheat-engine committed Oct 4, 2022
1 parent 3cb954a commit 2bbef46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cheat Engine/formChangedAddresses.pas
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ procedure TfrmChangedAddresses.miDissectClick(Sender: TObject);
if changedlist.Items[i].Selected then
begin
ae:=changedlist.items[i].data;
ap.setSpecialContext(@ae.fcontext);
ap.setSpecialContext(ae.fcontext);
address:=ap.getBaseAddress(equation);

maxoffset:=max(maxoffset, 8+strtoint64('$'+changedlist.Items[i].Caption)-address);
Expand Down Expand Up @@ -902,7 +902,7 @@ function TfrmChangedAddresses.checkFilter(entry: TaddressEntry): boolean;
begin
if currentFilterFunc=-1 then exit(true);

LUA_SetCurrentContextState(0,@entry.fcontext, filterExtraRegs);
LUA_SetCurrentContextState(0,entry.fcontext, filterExtraRegs);
lua_rawgeti(LuaVM, LUA_REGISTRYINDEX, currentFilterFunc);
if lua_pcall(LuaVM,0,1,0)=0 then
begin
Expand Down

0 comments on commit 2bbef46

Please sign in to comment.