From bf3d7e9ad76a9c06c2f7f5771311dc8ea481dd96 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 15 Nov 2012 20:13:19 -0500 Subject: [PATCH] fix tpt.el.X.name commands --- src/cat/LegacyLuaAPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index d6e6ce6a7..9a478e74e 100644 --- a/src/cat/LegacyLuaAPI.cpp +++ b/src/cat/LegacyLuaAPI.cpp @@ -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);