Fix warning about no such builtin

This commit is contained in:
2022-03-22 13:22:42 -04:00
parent a7cdedf82b
commit 0094b503f6
2 changed files with 2 additions and 2 deletions

View File

@@ -480,7 +480,7 @@ void SourceDB::register_lua_builtins() {
}
if (reg->get_func() == nullptr) {
if (builtin == nullptr) {
if ((!reg->get_sandbox()) || (reg->get_args() != nullptr)) {
if (!reg->get_sandbox()) {
std::cerr << "No such builtin function: " << classname << " " << funcname << std::endl;
}
} else {