aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/State.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-12-08 00:23:09 +0100
committer GitHub <noreply@github.com>2023-12-08 00:23:09 +0100
commitabb0804b015d8444542af7a6c5db728c0fde4cfb (patch)
tree6789bacb931ccfd7c7dc9de9e22a17b78b725d09 /src/openvic-simulation/map/State.hpp
parent085fe94212c6f0ddbdfca1b2ba58223e7f6dcc8a (diff)
parent4320b37f7258c7e1f2585d67509045b5c9d6de06 (diff)
Merge pull request #86 from OpenVicProject/meta-state-fix
Meta regions being used to make states fix
Diffstat (limited to 'src/openvic-simulation/map/State.hpp')
-rw-r--r--src/openvic-simulation/map/State.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/map/State.hpp b/src/openvic-simulation/map/State.hpp
index e403580..bb23b2d 100644
--- a/src/openvic-simulation/map/State.hpp
+++ b/src/openvic-simulation/map/State.hpp
@@ -29,11 +29,11 @@ namespace OpenVic {
using states_t = std::deque<State>;
private:
- Region const* PROPERTY(region);
+ Region const& PROPERTY(region);
states_t states;
public:
- StateSet(Region const* new_region);
+ StateSet(Region const& new_region);
bool add_state(State&& state);
bool remove_state(State const* state);