🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Some trouble with ternary operators, handles, and reference

Started by
1 comment, last by WitchLord 6 years, 5 months ago

class foo {}
void bar(const foo &in) {}
void main() {
 foo@ a = foo();
 bar(true ? a : a);
}

This module crashes my application (citing an illegal instruction/opcode) when the main() function is called. AngelScript version 2.31.2. The crash can be prevented by changing a's type to either const foo@ or simply foo instead of a handle.

Advertisement

Thanks. I'll investigate and fix this.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement