anhero / BaconBox

0 stars 1 forks source link

LuaHelper::getMovieClipEntityFromLuaEntity now works with userdata. #4

Closed samueldr closed 9 years ago

samueldr commented 9 years ago

Fixed an issue where

self.background = BaconBox.EntityFactory_getMovieClipEntity(name)
self.movieclip:addChild(self.background)
self.movieclip:removeChild(self.background)

Would not work since the entity given by EntityFactory_getMovieClipEntity is the userdata and not wrapped in an table.

Please review changes, I'm not used to playing in the Lua side of thing