Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

1.149? DEV Lambda changes? [SOLVED in 1.150 DEV]

$
0
0
I'm getting errors on the (previously fine) lambda for local-blocks only.

Code:
    GridTerminalSystem.GetBlocksOfType<IMyVirtualMass>(massList, (x => x.CubeGrid == Me.CubeGrid));
Results in two errors:

(71) Error: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
(65) Error: Not all code paths return a value in lambda expression of type 'Func<IMyVirtualMass, bool>'

What did I miss?

Viewing all articles
Browse latest Browse all 645

Trending Articles