From 1159224d6fc0e0ab503800cf056a0e985ba2929a Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 17 Jan 2024 18:14:20 +0000 Subject: [PATCH] Plans: Fix missing const specifiers on visibility getters --- src/plans_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plans_base.h b/src/plans_base.h index 7b528c1cdb..8000ce714e 100644 --- a/src/plans_base.h +++ b/src/plans_base.h @@ -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;