CLuaInstance: Fix commit e85f64d733

- Use return value from checkMagicMask() for color
This commit is contained in:
M. Liebmann
2016-01-01 14:41:53 +01:00
parent 6801bf215e
commit a7790ce049
4 changed files with 17 additions and 17 deletions

View File

@@ -108,9 +108,9 @@ int CLuaInstCCPicture::CCPictureNew(lua_State *L)
tableLookup(L, "color_shadow", color_shadow);
tableLookup(L, "transparency", transparency);
checkMagicMask(color_frame);
checkMagicMask(color_background);
checkMagicMask(color_shadow);
color_frame = checkMagicMask(color_frame);
color_background = checkMagicMask(color_background);
color_shadow = checkMagicMask(color_shadow);
CComponentsForm* pw = (parent && parent->w) ? parent->w->getBodyObject() : NULL;