moai/moai-dev — pull request #593 by JoakimBlomberg (2012-10-19 14:35:00+00:00)
Title: Script node apply of attributes should unpack attribute id or it will not be applied

Found this bug while trying to pull an attribute from a box2d body. The pull gets triggered correctly but the attribute value is never written because of the array range check with a masked value.

I'm new to the MOAI source and C++ engines in general so I'm not absolutely sure what I've done here, but I think its correct.