diff --git a/src/lua/lua_module.cpp b/src/lua/lua_module.cpp index e40ec8a..7992d6f 100644 --- a/src/lua/lua_module.cpp +++ b/src/lua/lua_module.cpp @@ -153,7 +153,9 @@ namespace big { sol::environment& env = this_env; sol::optional _this = env["!this"]; - if (_this) + + // That's weird. + if (_this && _this.value()) { return _this.value(); }