aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/utility
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-02-19 22:09:17 +0100
committer GitHub <noreply@github.com>2024-02-19 22:09:17 +0100
commit147e0a772dc768bd90fdccdd2536f14c11238d57 (patch)
treeaef9a168b1e4ce5b15797bca460abda5edf465c0 /src/openvic-simulation/utility
parent35e5f7828a41736194362186ad4f946fad5964d1 (diff)
parent31a3521643dbf4bd218a6af10025f99ac3bf7e98 (diff)
Merge pull request #149 from OpenVicProject/fp-rounding+texture-sprites
Fixed point rounding and Texture Sprites
Diffstat (limited to 'src/openvic-simulation/utility')
-rw-r--r--src/openvic-simulation/utility/Getters.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/utility/Getters.hpp b/src/openvic-simulation/utility/Getters.hpp
index fa76e74..0a6917c 100644
--- a/src/openvic-simulation/utility/Getters.hpp
+++ b/src/openvic-simulation/utility/Getters.hpp
@@ -121,7 +121,7 @@ ACCESS:
#define PROPERTY_RW_FULL(NAME, GETTER_NAME, SETTER_NAME, ACCESS) \
PROPERTY_FULL(NAME, GETTER_NAME, ACCESS) \
public: \
- void SETTER_NAME(decltype(NAME) new_##NAME) { \
+ constexpr void SETTER_NAME(decltype(NAME) new_##NAME) { \
NAME = new_##NAME; \
} \
ACCESS: