Advertisement

Error when saving bytecode on x64

Started by August 25, 2015 03:05 PM
1 comment, last by WitchLord 9 years, 3 months ago

When I try to call SaveByteCode for a script which calls a constructor such as this:


engine->RegisterObjectBehaviour("string", asBEHAVE_CONSTRUCT, "void f(int, const string& in)", asFUNCTION(TestStringConstructor), asCALL_CDECL_OBJLAST);

with asCALL_CDECL_OBJLAST and where a value type argument is passed before a reference type argument, on x64 this assertion is triggered:


offset == currOffset, file ..\..\source\as_restore.cpp, line 4244

I've attached a modified version of the asrun example that produces my problem.

Thanks

Thanks. I'll investigate it as soon as possible.

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 bug in revision 2215.

Thanks for making it easy for me to reproduce the problem.

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