🎉 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!

scriptany addon call wrong constructor in 2.31.0

Started by
2 comments, last by loboWu 8 years, 2 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"
}

Advertisement

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

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