diff options
Diffstat (limited to 'src/components/Script.hpp')
-rw-r--r-- | src/components/Script.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Script.hpp b/src/components/Script.hpp index 3f96be5..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( @@ -119,7 +119,7 @@ public: } - std::string serializeName(void) const final { + virtual std::string serializeName(void) const final { return "Scripted"; } }; |