Sign in to follow this  
Dentoid

Bug in AngelScript 1.8.0a?

Recommended Posts

Dentoid    122
Hi I've had some crashes in as_compiler_expressions.cpp:1752 The line looks like this: desc = builder->module->scriptFunctions[funcs[n]]; This gave an out of range index. Changing it to this cured my problems: desc = builder->module->scriptFunctions[funcs[n]-builder->module->moduleID]; I can't really give a very good bugreport or anything since I haven't had time to explore things thoroughly. Hope it's of some use. :) /Anders Stenberg

Share this post


Link to post
Share on other sites
WitchLord    4677
It's a bug alright. Thanks for letting me know. Actually the bug is related to the one I already fixed with 1.8.0a, though in another location.

bug fix:

Exchange lines 1748 - 1752:


asCScriptFunction *desc;
if( funcs[n] < 0 )
desc = builder->engine->systemFunctions[-funcs[n] - 1];
else
desc = builder->module->scriptFunctions[funcs[n]];


for


asCScriptFunction *desc = builder->GetFunctionDescription(funcs[n]);


Your fix also works. But only for this version where there is no connection between modules.

I'll upload a new version as soon as possible. Sorry about any inconveniance caused by the buggy release.

Regards,
Andreas

Share this post


Link to post
Share on other sites
Dentoid    122
Quote:
Original post by WitchLord
Your fix also works. But only for this version where there is no connection between modules.


Yeah, I guessed so but didn't have time to figure out a proper fix. :)

Thanks anyway.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this