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

asIScriptGeneric and null object handles

Started by
0 comments, last by WitchLord 16 years, 7 months ago
hi i've found that passing or returning null handles when using call_generic convention causes crash (mostly because of calling addref/release methods on null pointer) the simple fix is to add 'obj &&' to lines:
//as_generic.cpp (Ln  408 Col  9)
if( obj && beh->addref )


//as_context.cpp (Ln 3446 Col 17) (Ln 3475 in current WIP)
if( obj && beh->release )
hans
Advertisement
Hi Hans,

I've fixed this in the latest WIP. Thanks for letting me know.

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

This topic is closed to new replies.

Advertisement