Fix crash on new player

master
rubenwardy 2018-12-14 02:03:53 +00:00
parent 9eae2d474e
commit 10b43ef79d
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ table.remove(sfinv.pages_unordered, #sfinv.pages_unordered)
company.register_snippet("ceo", function(comp)
return "CEO: " .. comp:get_ceo_name()
return comp and ("CEO: " .. comp:get_ceo_name()) or ""
end)
company.register_panel({