C# 14 fixes (#41708)
Necessary for the move to .NET 10 & C# 14. Actual PR to change SS14 to C# 14 will be separate.
This commit is contained in:
parent
8d6097be9a
commit
da3e331366
1 changed files with 6 additions and 3 deletions
|
|
@ -98,10 +98,13 @@ public sealed class ParallaxManager : IParallaxManager
|
|||
}
|
||||
else
|
||||
{
|
||||
layers = await Task.WhenAll(
|
||||
// Explicitly allocate params array to avoid sandbox violation since C# 14.
|
||||
var tasks = new[]
|
||||
{
|
||||
LoadParallaxLayers(parallaxPrototype.Layers, loadedLayers, cancel),
|
||||
LoadParallaxLayers(parallaxPrototype.LayersLQ, loadedLayers, cancel)
|
||||
);
|
||||
LoadParallaxLayers(parallaxPrototype.LayersLQ, loadedLayers, cancel),
|
||||
};
|
||||
layers = await Task.WhenAll(tasks);
|
||||
}
|
||||
|
||||
cancel.ThrowIfCancellationRequested();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue