Advertisement

Some trouble with ternary operators, handles, and reference

Started by January 15, 2018 11:28 PM
1 comment, last by WitchLord 6 years, 10 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.

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