fix tpt.el.X.name commands

This commit is contained in:
jacob1 2012-11-15 20:13:19 -05:00
parent 38a18af2c5
commit bf3d7e9ad7

View File

@ -462,7 +462,7 @@ int luacon_elementwrite(lua_State* l){
free(key);
return luaL_error(l, "Name too long");
}
if(luacon_ci->GetParticleType(tempstring) == -1)
if(luacon_ci->GetParticleType(tempstring) != -1)
{
free(tempstring);
free(key);