aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Script.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2022-08-20 11:15:45 -0400
committerClyne Sullivan <clyne@bitgloo.com>2022-08-20 11:15:45 -0400
commitea719de76706140ce87f16fd9bde61c0e665d089 (patch)
tree7c196eb8fbaca94bdcf3da588cb0f9d7e79df93d /src/components/Script.hpp
parent0dc221b200b9d3df550e2d760cb396e4cb5f7176 (diff)
fix serialization support
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(