Skip to content

Commit

Permalink
fix bug where !set arguments would be cast to float then back to int
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Oct 8, 2014
1 parent c16caed commit 1652205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/TPTScriptInterface.cpp
Expand Up @@ -271,7 +271,7 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words)
float newValuef;
if (value.GetType() == TypeNumber)
{
newValue = newValuef = ((NumberType)value).Value();
newValuef = newValue = ((NumberType)value).Value();
}
else if (value.GetType() == TypeFloat)
{
Expand Down

0 comments on commit 1652205

Please sign in to comment.