From: Clyne Sullivan Date: Tue, 3 Sep 2019 21:58:04 +0000 (-0400) Subject: render: use tab.get for strings X-Git-Tag: v0.2-alpha~43 X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=0b3d24c4295bb89eb4ce3f91163cabd64d0ca6e2;p=clyne%2Fgamedev2.git render: use tab.get for strings --- 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 {