aboutsummaryrefslogtreecommitdiff
path: root/src/openvic2/Types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic2/Types.cpp')
-rw-r--r--src/openvic2/Types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic2/Types.cpp b/src/openvic2/Types.cpp
index f51ad7c..719f5b1 100644
--- a/src/openvic2/Types.cpp
+++ b/src/openvic2/Types.cpp
@@ -14,8 +14,8 @@ std::string const& HasIdentifier::get_identifier() const {
return identifier;
}
-HasColour::HasColour(colour_t const new_colour) : colour(new_colour) {
- assert(colour != NULL_COLOUR && colour <= MAX_COLOUR_RGB);
+HasColour::HasColour(colour_t const new_colour, bool can_be_null) : colour(new_colour) {
+ assert((can_be_null || colour != NULL_COLOUR) && colour <= MAX_COLOUR_RGB);
}
colour_t HasColour::get_colour() const { return colour; }