@aeva If you haven't found already: It looks like there's a semicolon after the if, before the newline and opening brace, so the if statement running on an empty statement, and then entering the block afterwards. These sorts of typo bugs always suck to debug since there's often no warning until you crank the warning levels esp in Visual Studio, and often they don't warn about "allowed but not actually desired" code :/