summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commodity.h b/src/commodity.h
index 93c1f3be..fc1a23de 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -183,6 +183,9 @@ public:
void set_flags(flags_t arg) {
base->flags = arg;
}
+ bool has_flags(flags_t arg) {
+ return base->flags & arg;
+ }
void add_flags(flags_t arg) {
base->flags |= arg;
}