From c3ba809806481912b895a12b2d70df7c3dc16476 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Fri, 26 Oct 2012 15:32:10 +0100 Subject: [PATCH] Fix error from merging --- src/cat/TPTScriptInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp index 982425f6a..47828383f 100644 --- a/src/cat/TPTScriptInterface.cpp +++ b/src/cat/TPTScriptInterface.cpp @@ -219,7 +219,7 @@ AnyType TPTScriptInterface::tptS_set(std::deque * 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");