mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 19:51:45 +02:00
Fix error from merging
This commit is contained in:
@@ -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