summaryrefslogtreecommitdiff
path: root/src/cat/TPTScriptInterface.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-10-26 14:32:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-10-26 14:32:10 (GMT)
commitc3ba809806481912b895a12b2d70df7c3dc16476 (patch)
tree1da345bce2006e55d847825d4b2051f721af19f1 /src/cat/TPTScriptInterface.cpp
parenta1d98ffc31fc47e4cedf495a4a9edf27f86a452c (diff)
downloadpowder-c3ba809806481912b895a12b2d70df7c3dc16476.zip
powder-c3ba809806481912b895a12b2d70df7c3dc16476.tar.gz
Fix error from merging
Diffstat (limited to 'src/cat/TPTScriptInterface.cpp')
-rw-r--r--src/cat/TPTScriptInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp
index 982425f..4782838 100644
--- a/src/cat/TPTScriptInterface.cpp
+++ b/src/cat/TPTScriptInterface.cpp
@@ -219,7 +219,7 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words)
newValue = GetParticleType(((StringType)value).Value());
if (newValue < 0 || newValue >= PT_NUM)
{
- if (newString == "GOLD")
+ if (((StringType)value).Value() == "GOLD")
throw GeneralException("No, GOLD will not be an element");
else
throw GeneralException("Invalid element");