summaryrefslogtreecommitdiff
path: root/object.h
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-21 21:01:01 +0800
committerKeuin <[email protected]>2022-04-21 21:01:01 +0800
commit563c65c4ac6abf4522c9673d708a568f2acde2d4 (patch)
treeb080a622208b2f77df30adf1a121168c865aa7c0 /object.h
parent5f92f7182311b111a1bb9ac2f3bccb9eb5754c2c (diff)
Make object holds a constant reference to its material.
Diffstat (limited to 'object.h')
-rw-r--r--object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.h b/object.h
index 7f35237..ab79423 100644
--- a/object.h
+++ b/object.h
@@ -41,7 +41,7 @@ public:
virtual ~object() = default;
// Get this object's material.
- virtual material &get_material() const = 0;
+ virtual const material & get_material() const = 0;
};