diff --git a/sol/proxy.hpp b/sol/proxy.hpp index 99f0f0c6..4401e30a 100644 --- a/sol/proxy.hpp +++ b/sol/proxy.hpp @@ -184,7 +184,7 @@ namespace sol { } proxy& force() { - if (this->valid()) { + if (!this->valid()) { this->set(new_table()); } return *this;