Skip to content

Commit

Permalink
fix memrec getCurrentDropDownIndex
Browse files Browse the repository at this point in the history
when using linked dropdownlist
  • Loading branch information
mgrinzPlayer committed Jun 18, 2017
1 parent fa5a69a commit dc75af6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Cheat Engine/MemoryRecordUnit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,15 @@ function TMemoryRecord.getCurrentDropDownIndex: integer;
begin
mr:=getlinkedDropDownMemrec;
if mr<>nil then
exit(mr.getCurrentDropDownIndex)
begin
result:=-1;
for i:=0 to mr.DropDownCount-1 do
begin
if lowercase(Value)=lowercase(mr.DropDownValue[i]) then
result:=i;
end;
exit;
end
else
exit(-1);
end;
Expand Down
2 changes: 1 addition & 1 deletion Cheat Engine/addresslist.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ procedure TAddresslist.ValueClick(node: TTreenode);



if (memrec.VarType<>vtAutoAssembler) and (selcount<=1) and (memrec.DropDownList.count=0) then
if (memrec.VarType<>vtAutoAssembler) and (selcount<=1) and (memrec.DropDownCount=0) then
begin


Expand Down

0 comments on commit dc75af6

Please sign in to comment.