Skip to content

Commit

Permalink
fix(heightmap): minor change to CJ's heightmap freeing
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Jun 28, 2024
1 parent 254db7f commit 12734bd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions osr/walker/walker.simba
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ type
Map: TMufasaBitmap;
MaxHeight: Double;
MathCache: Double;
IsFreed : Boolean;
end;

(*
Expand Down Expand Up @@ -73,11 +72,8 @@ end;

procedure TRSHeightMap.Free();
begin
if Self.IsFreed then
Exit;

Self.Map.Free();
Self.IsFreed := true;
if Assigned(Self.Map) then
Self.Map.Free();
end;

(*
Expand Down

0 comments on commit 12734bd

Please sign in to comment.