We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a8aa7f commit 8f77babCopy full SHA for 8f77bab
1 file changed
src/OMSimulatorLib/Model.h
@@ -96,7 +96,7 @@ namespace oms
96
void copyResources(bool copy_resources) {this->copy_resources = copy_resources;}
97
bool copyResources() {return copy_resources;}
98
99
- oms::Element** getElements() {return &elements[0];}
+ oms::Element** getElements() {return system ? &elements[0] : nullptr;}
100
void writeAllResourcesToFilesystem(std::vector<std::string>& resources, Snapshot& snapshot) const;
101
102
oms_status_enu_t instantiate();
0 commit comments