summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-11-16 01:13:19 (GMT)
committer jacob1 <jfu614@gmail.com>2012-11-16 01:13:19 (GMT)
commitbf3d7e9ad76a9c06c2f7f5771311dc8ea481dd96 (patch)
treef1b8e31bed0da14c1dda679245f192f3ea119988 /src
parent38a18af2c5557ee80392ac3f124fdfd531eaf45d (diff)
downloadpowder-bf3d7e9ad76a9c06c2f7f5771311dc8ea481dd96.zip
powder-bf3d7e9ad76a9c06c2f7f5771311dc8ea481dd96.tar.gz
fix tpt.el.X.name commands
Diffstat (limited to 'src')
-rw-r--r--src/cat/LegacyLuaAPI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp
index d6e6ce6..9a478e7 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);