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

Error when saving bytecode on x64

Started by
1 comment, last by WitchLord 8 years, 10 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

Advertisement

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

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