aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Script.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Script.hpp')
-rw-r--r--src/components/Script.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Script.hpp b/src/components/Script.hpp
index d7bc147..93997a9 100644
--- a/src/components/Script.hpp
+++ b/src/components/Script.hpp
@@ -74,7 +74,7 @@ public:
else if (value.get_type() == sol::type::number)
table_components.push_back(std::make_tuple(
key.as<std::string>(),
- std::string("return " + value.as<std::string>())
+ std::string("return ") + std::to_string(value.as<double>())
));
else if (value.get_type() == sol::type::boolean) {
table_components.push_back(std::make_tuple(