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