diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2022-11-15 07:35:07 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2022-11-15 07:35:07 -0500 |
commit | a056c15dd3781b4f6bb89fdd738b14cafc00cd85 (patch) | |
tree | 1775a5913c7bc87563b6b4a29c63514cf15b4185 /src/components/Script.hpp | |
parent | 1405d648b6264cfda7c46f5b251258335abaee83 (diff) | |
parent | 57013add5b7c524086272be7d395f9ec5109bde2 (diff) |
merge branch lib-cleanup into ui
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"; } }; |