Jump to content
  • Advertisement
Sign in to follow this  
WitchLord

AngelScript 2.15.1 available for download

This topic is 3550 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've uploaded version 2.15.1 of AngelScript. This is a maintenance release with no new functionality. It brings several bug fixes and performance improvements in multithreaded applications. Regards, Andreas

Share this post


Link to post
Share on other sites
Advertisement
I found a bug in this version. It looks like i cannot do this.

class Jerome
{
string a;
string b;
string c;
Jerome(string A,string B,string C)
{
a = A;
b = B;
c = C;
}
}
Jerome cc("Hello","Hi","SS");

It crash everytime on
CScriptString &CScriptString::operator=(const CScriptString &other)

with an Access violation reading location error

Share this post


Link to post
Share on other sites
The fix for this bug is just to add a minus in the method asCCompiler::CompileFactory:

as_compiler.cpp, line 186:


int asCCompiler::CompileFactory(asCBuilder *builder, asCScriptCode *script, asCScriptFunction *outFunc)
{
...

// Copy all arguments to the top of the stack
unsigned int argDwords = outFunc->GetSpaceNeededForArguments();
for( n = 0; n < argDwords; n++ )
byteCode.InstrSHORT(BC_PshV4, (short)-n); // <-- Add the minus to negate n

...
}




I'll check in the fix as soon as I can.

Thanks,
Andreas

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!