File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -426,7 +426,8 @@ static IEnumerable<CodeInstruction> ShipConstruct_LoadShip_Transpiler(IEnumerabl
426426 && code [ i + 1 ] . opcode == OpCodes . Ldloc_3
427427 && code [ i + 2 ] . opcode == OpCodes . Ldloca_S
428428 && code [ i + 3 ] . opcode == OpCodes . Callvirt && ReferenceEquals ( code [ i + 3 ] . operand , Part_LoadModule )
429- && code [ i + 4 ] . opcode == OpCodes . Pop )
429+ && code [ i + 4 ] . opcode == OpCodes . Pop
430+ && code [ i + 4 ] . opcode == OpCodes . Br )
430431 {
431432 originalFound = true ;
432433 for ( int j = i ; j < i + 6 ; j ++ )
@@ -455,7 +456,7 @@ static IEnumerable<CodeInstruction> ShipConstruct_LoadShip_Transpiler(IEnumerabl
455456 && code [ i + 2 ] . opcode == OpCodes . Ldloca_S
456457 && code [ i + 3 ] . opcode == OpCodes . Callvirt && ReferenceEquals ( code [ i + 3 ] . operand , Part_LoadModule )
457458 && code [ i + 4 ] . opcode == OpCodes . Pop
458- && code [ i + 5 ] . opcode == OpCodes . Br )
459+ && code [ i + 5 ] . opcode == OpCodes . Br_S )
459460 {
460461 originalFound = true ;
461462 for ( int j = i ; j < i + 6 ; j ++ )
You can’t perform that action at this time.
0 commit comments