fix bug where !set arguments would be cast to float then back to int
This commit is contained in:
parent
c16caed5dd
commit
16522056fb
@ -271,7 +271,7 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words)
|
|||||||
float newValuef;
|
float newValuef;
|
||||||
if (value.GetType() == TypeNumber)
|
if (value.GetType() == TypeNumber)
|
||||||
{
|
{
|
||||||
newValue = newValuef = ((NumberType)value).Value();
|
newValuef = newValue = ((NumberType)value).Value();
|
||||||
}
|
}
|
||||||
else if (value.GetType() == TypeFloat)
|
else if (value.GetType() == TypeFloat)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user