✅ vscode telling me some weird errors

this makes no sense
No description
5 Replies
it’s raining outside
so apparently it loses all its properties if its nullable even tho i abort the function if it's null
xandyMelo
xandyMelo3mo ago
you can use:
pieceWeClicked.Value.moving
pieceWeClicked.Value.moving
Since you checked if it is null before, the .Value will not generate errors.
it’s raining outside
it doesn't have a Value property tho and that doesnt solve my issue
xandyMelo
xandyMelo3mo ago
Sorry, I got it wrong, I can't reproduce your error, unless I write the property name wrong.
it’s raining outside
ah ok i just needed to make it a class and not a struct
Want results from more Discord servers?
Add your server