Plans: Fix missing const specifiers on visibility getters

This commit is contained in:
Jonathan G Rennison
2024-01-17 18:14:20 +00:00
parent a3c5084b29
commit 1159224d6f

View File

@@ -203,12 +203,12 @@ struct Plan : PlanPool::PoolItem<&_plan_pool> {
bool ValidateNewLine();
bool IsListable()
bool IsListable() const
{
return (this->owner == _local_company || this->visible_by_all);
}
bool IsVisible()
bool IsVisible() const
{
if (!this->IsListable()) return false;
return this->visible;