The UFZ services GitLab and Mattermost will be unavailable on Monday, July 4 from 06:00 AM to 08:00 AM due to maintenance work.

Commit 2b1537c7 authored by Adam Reichold's avatar Adam Reichold
Browse files

Fix missing save/restore of World::observers field.

parent 1a60e70b
Pipeline #82366 passed with stage
in 3 minutes and 16 seconds
......@@ -9,6 +9,7 @@ use model::{
hoverfly::{Clutch, ClutchLocation, Hoverfly},
insect::Species as InsectSpecies,
observer::Observation,
observer::Observer,
solitary_bee::{Nest, NestLocation, SolitaryBee},
units::Tick,
TemporalNetwork, World,
......@@ -49,6 +50,7 @@ unsafe impl Dump for World {
self.nests.save(buf, pos);
self.bumblebees.save(buf, pos);
self.colonies.save(buf, pos);
self.observers.save(buf, pos);
self.observations.save(buf, pos);
self.contacts.save(buf, pos);
......@@ -65,6 +67,7 @@ unsafe impl Dump for World {
buf = Dump::restore(buf, addr_of_mut!((*this).nests));
buf = Dump::restore(buf, addr_of_mut!((*this).bumblebees));
buf = Dump::restore(buf, addr_of_mut!((*this).colonies));
buf = Dump::restore(buf, addr_of_mut!((*this).observers));
buf = Dump::restore(buf, addr_of_mut!((*this).observations));
buf = Dump::restore(buf, addr_of_mut!((*this).contacts));
......@@ -107,6 +110,8 @@ unsafe impl Dump for Bumblebee {}
unsafe impl Dump for Colony {}
unsafe impl Dump for Observer {}
unsafe impl Dump for Observation {}
unsafe impl Dump for FlowerPatchSpecies {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment