Permalink
Browse files

fix bug where !set arguments would be cast to float then back to int

  • Loading branch information...
jacob1 committed Oct 8, 2014
1 parent c16caed commit 16522056fb37d1e132a9f8aa7d3e16596000ce08
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lua/TPTScriptInterface.cpp
@@ -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)
{

0 comments on commit 1652205

Please sign in to comment.