register global var error
I found something strange about the order of RegisterGlobalProperty In My env, I must register some global var. asIScriptArray *gPacketData=0; unsigned int gPacketLength=0; r = engine->RegisterGlobalProperty("uint gPacketLength", &gPacketLength); r = engine->RegisterGlobalProperty("uint8[] @gPacketData", &gPacketData); This is just fine. But when I change the order like r = engine->RegisterGlobalProperty("uint8[] @gPacketData", &gPacketData); r = engine->RegisterGlobalProperty("uint gPacketLength", &gPacketLength); It will report assertion failed. Is there something wrong ?
Looks like a bug in AngelScript. I'll look into it a.s.a.p.
What version are you using?
Regards,
Andreas
What version are you using?
Regards,
Andreas
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 the bug with WIP 3 that is now available from the site.
Thanks for reporting it.
Thanks for reporting it.
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement