TorqueGameEngines / Torque2D

A completely free, open-source, 2D game engine built on proven torque technology.
MIT License
1.24k stars 110 forks source link

Fix return of reference to temporary #40

Closed sstiller closed 2 years ago

sstiller commented 3 years ago

A reference to an object on the stack was returned in GuiSpriteCtrl::applyAlignment leading to segfaults in the demo application:

greenfire27 commented 2 years ago

Thanks for the quick fix!

elementc commented 2 years ago

ah, shoot, missed this one when i was fixing up linux builds. mea culpa!