Skip to content

Commit

Permalink
terrain lua bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
super626 committed Nov 23, 2015
1 parent 39a6f1e commit e8d8539
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ void terraindata_to_luaval(lua_State* L,const cocos2d::Terrain::TerrainData& inV
lua_rawset(L, -3);
}

if (nullptr != inValue._alphaMapSrc)
if (!inValue._alphaMapSrc.empty())
{
lua_pushstring(L, "_alphaMapSrc");
lua_pushstring(L, inValue._alphaMapSrc);
lua_pushstring(L, inValue._alphaMapSrc.c_str());
lua_rawset(L, -3);
}

Expand Down

0 comments on commit e8d8539

Please sign in to comment.