Skip to content

Commit

Permalink
Make LastUsage volatile just for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Jun 28, 2024
1 parent bf2beb2 commit 6216dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Framework/Allocation/ObjectUsage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ObjectUsage<T> : IDisposable
{
public T? Object;

public UsageType LastUsage;
public volatile UsageType LastUsage;

public readonly int Index;

Expand Down

0 comments on commit 6216dac

Please sign in to comment.