Fix error from merging

This commit is contained in:
Simon Robertshaw 2012-10-26 15:32:10 +01:00
parent a1d98ffc31
commit c3ba809806

View File

@ -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");