From 0b3d24c4295bb89eb4ce3f91163cabd64d0ca6e2 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 3 Sep 2019 17:58:04 -0400 Subject: render: use tab.get for strings --- src/components/Render.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Render.hpp b/src/components/Render.hpp index 3f1750f..073cbdf 100644 --- a/src/components/Render.hpp +++ b/src/components/Render.hpp @@ -41,9 +41,9 @@ public: if (tab["visible"].get_type() == sol::type::boolean) this->visible = tab["visible"]; if (tab["texture"].get_type() == sol::type::string) - this->texture = Texture(static_cast(tab["texture"])); + this->texture = Texture(tab.get("texture")); if (tab["normal"].get_type() == sol::type::string) - this->normal = Texture(static_cast(tab["normal"])); + this->normal = Texture(tab.get("normal")); if (tab["flipx"].get_type() == sol::type::boolean) this->flipX = tab["flipx"]; } else { -- cgit v1.2.3