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

AngelScript modifying wrong address.

Started by
1 comment, last by BornToCode 16 years ago
r = engine->RegisterObjectProperty("Sprite","bool stopmovement",offsetof(ActorProperty,hitpoints));assert(r>=0); r = engine->RegisterObjectProperty("Sprite","bool waytowalk",offsetof(ActorProperty,waytowalk));assert(r>=0); r = engine->RegisterObjectProperty("Sprite","bool visible",offsetof(ActorProperty,visible));assert(r>=0); The problem that i am having is that when i modify stopmovement, for whatever reason angelscript goes and modify waytowalk. Do u know why would that be the case.
Advertisement
Why is stopmovement using the offset of hitpoints?
Thanx that was an typo mistake. I found what the problem is, stupid me. I was offseting and short variable into an int and that was cause the problem. I figure that the size for both the angelscript and c++ have to match.

This topic is closed to new replies.

Advertisement