mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-26 05:50:07 +02:00
misc: chore: Fix numerous NullReferenceExceptions, InvalidOperationExceptions
This commit is contained in:
@@ -47,7 +47,7 @@ namespace Ryujinx.Graphics.Shader.Translation.Transforms
|
||||
|
||||
Operand[] callArgs = [Const(functionId), byteOffset, value];
|
||||
|
||||
LinkedListNode<INode> newNode = node.List.AddBefore(node, new Operation(Instruction.Call, 0, (Operand)null, callArgs));
|
||||
LinkedListNode<INode> newNode = node.List?.AddBefore(node, new Operation(Instruction.Call, 0, (Operand)null, callArgs));
|
||||
|
||||
Utils.DeleteNode(node, operation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user