GarageGames/Torque3D — pull request #547 by asmaloney (2013-12-04 21:51:17+00:00)
Title: Fix potential crashes

- some compilers have problems with using locally redeclared loop vars after an internal loop
- fix ordering of conditional checks