Don't store the TurnChoices as Arc<RwLock>>, to prevent locking issues.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-06-18 09:49:17 +02:00
parent 94403e2ca1
commit 09c2533bf5
6 changed files with 33 additions and 46 deletions

View File

@@ -251,7 +251,7 @@ pub fn load_species(path: &String, library: &mut StaticData) {
let default_form_value = &forms["default"];
let default_form = parse_form("default".into(), default_form_value, library);
let mut species = Box::new(Species::new(
let species = Box::new(Species::new(
id as u16,
&name,
gender_rate as f32,