fixup previous commit: don't compare std::function with nullptr

This commit is contained in:
Chris Beck 2016-10-07 19:15:03 -04:00
parent 0d2635c20a
commit d82d8c9137

View File

@ -140,7 +140,7 @@ int lua_kernel_base::intf_show_lua_console(lua_State *L)
return 0;
}
if (cmd_log_.external_log_ != nullptr) {
if (cmd_log_.external_log_) {
std::string message = "There is already an external logger attached to this lua kernel, you cannot open the lua console right now.";
log_error(message.c_str());
cmd_log_ << message << "\n";