Fix error from merging
This commit is contained in:
parent
a1d98ffc31
commit
c3ba809806
@ -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");
|
||||
|
Reference in New Issue
Block a user