SomeRanDev / reflaxe.GDScript

Compile Haxe to GDScript 2.0 as easily as you'd output to any other target
MIT License
18 stars 2 forks source link

Fix value types being treated as references #1

Closed SomeRanDev closed 9 months ago

SomeRanDev commented 9 months ago
position.x += 1;

converts to:

var p = position
p.x += 1
SomeRanDev commented 9 months ago

Add @:avoid_temporaries to the type you dont want this to occur to