From 62d5446860809fd52d4dff6fa3b6a9ed2d9c54ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henri=20Hyyryl=C3=A4inen?= Date: Thu, 9 May 2019 19:36:35 +0300 Subject: [PATCH] Restored _organelle to private, there's a reason it's private to stop people from modifying it --- scripts/microbe_stage/microbe_editor/microbe_editor.as | 2 +- scripts/microbe_stage/organelle.as | 2 +- scripts/microbe_stage/species_system.as | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/microbe_stage/microbe_editor/microbe_editor.as b/scripts/microbe_stage/microbe_editor/microbe_editor.as index 0d7a0714b9d..4161e86c6e4 100644 --- a/scripts/microbe_stage/microbe_editor/microbe_editor.as +++ b/scripts/microbe_stage/microbe_editor/microbe_editor.as @@ -130,7 +130,7 @@ class MicrobeEditor{ for(uint i = 0; i < templateOrganelles.length(); ++i){ auto organelle = cast(templateOrganelles[i]); editedMicrobe.insertLast(organelle); - playerSpecies.stringCode+=organelle._organelle.gene; + playerSpecies.stringCode += organelle.organelle.gene; // This will always be added after each organelle so its safe to assume its there playerSpecies.stringCode+=","+organelle.q+","+ organelle.r+","+ diff --git a/scripts/microbe_stage/organelle.as b/scripts/microbe_stage/organelle.as index f7d18abcf39..76c49fdde5d 100644 --- a/scripts/microbe_stage/organelle.as +++ b/scripts/microbe_stage/organelle.as @@ -873,7 +873,7 @@ class PlacedOrganelle : SpeciesStoredOrganelleType{ } } - Organelle@ _organelle; + private Organelle@ _organelle; // q and r are radial coordinates instead of cartesian // Could use the class AxialCoordinates here diff --git a/scripts/microbe_stage/species_system.as b/scripts/microbe_stage/species_system.as index 78360f6556a..b0d0dc0ccd0 100644 --- a/scripts/microbe_stage/species_system.as +++ b/scripts/microbe_stage/species_system.as @@ -1208,7 +1208,7 @@ ObjectID createSpecies(CellStageWorld@ world, const string &in name, const strin for(uint i = 0; i < organelles.length(); ++i){ auto organelle = cast(organelles[i]); speciesComponent.organelles.insertLast(organelle); - speciesComponent.stringCode+=organelle._organelle.gene; + speciesComponent.stringCode += organelle.organelle.gene; // This will always be added after each organelle so its safe to assume its there speciesComponent.stringCode+=","+organelle.q+","+ organelle.r+","+