FpDebug: Fixed mistake in attempt to solve AV in StateMachineValid

This commit is contained in:
Joost van der Sluis 2022-05-13 22:50:52 +02:00
parent 239b2be664
commit be75a9d85e

View File

@ -5881,15 +5881,15 @@ begin
Result := FStateMachine <> nil;
if Result then Exit;
Result := FAddressInfo <> nil;
if not result then exit;
if FAddressInfo^.StateMachine = nil
then begin
CompilationUnit.BuildLineInfo(FAddressInfo, False);
if FAddressInfo^.StateMachine = nil then Exit;
end;
Result := FAddressInfo <> nil;
if not result then exit;
// we cannot restore a statemachine to its current state
// so we shouldn't modify FAddressInfo^.StateMachine
// so use clones to navigate