mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Invert boolean check in proxy::force()
This commit is contained in:
parent
248fd71193
commit
d9909584ab
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user