🎉 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!
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
I've fixed the bug with WIP 3 that is now available from the site.
Thanks for reporting it.
Thanks for reporting it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement