From d9909584ab8b2093b7197cf89023cb380c58bd95 Mon Sep 17 00:00:00 2001 From: Phil Tolland Date: Tue, 8 Jan 2019 13:06:37 +0000 Subject: [PATCH] Invert boolean check in proxy::force() --- sol/proxy.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;