Advertisement

scriptany addon call wrong constructor in 2.31.0

Started by April 26, 2016 08:49 AM
2 comments, last by loboWu 8 years, 7 months ago

In the past years, I use 2.29.0 for a long time.

But when I upgrade to 2.31.0, I found something strange with scriptany class

try the following codes(which are correct in 2.29.0)

void main()
{
string testh = "hello";
string output;
any data;
data.store(testh);

any temp = data;
temp.retrieve(output); // the retrieve will return false
}

but the following codes

void main2()
{
string testh = "hello";
string output;
any data;
data.store(testh);

any temp;

temp = data;
temp.retrieve(output); // the output will get the right value "hello"
}

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 2319.

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

Thanks a lot

This topic is closed to new replies.

Advertisement