Invert boolean check in proxy::force()

This commit is contained in:
Phil Tolland 2019-01-08 13:06:37 +00:00 committed by The Phantom Derpstorm
parent 248fd71193
commit d9909584ab

View File

@ -184,7 +184,7 @@ namespace sol {
} }
proxy& force() { proxy& force() {
if (this->valid()) { if (!this->valid()) {
this->set(new_table()); this->set(new_table());
} }
return *this; return *this;