Advertisement

Array argument getting wrong default value

Started by November 19, 2018 02:52 PM
2 comments, last by WitchLord 6 years ago

void f(array<int> a = {9}) {
    print(a[0]); // prints '0' (expected '9')
}

void id() {
    f();
}

Angelscript 2.32.0

Thanks. I'll investigate 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

Advertisement

I've fixed this in revision 2562

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