Skip to content

Commit

Permalink
Fixed a rare crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjonj committed Jun 10, 2014
1 parent ed2d90b commit bc7a876
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/microbe_stage/microbe_replacement.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ end
function MicrobeReplacementSystem:activate()
activeCreatureId = Engine:playerData():activeCreature()
if Engine:playerData():isBoolSet("edited_microbe") then
Engine:playerData():setBool("edited_microbe", false);
workingMicrobe = Microbe(Entity(activeCreatureId, GameState.MICROBE_EDITOR))
if workingMicrobe:getCompoundAmount(CompoundRegistry.getCompoundId("atp")) == 0 then
workingMicrobe:storeCompound(CompoundRegistry.getCompoundId("atp"), 10)
Expand Down

0 comments on commit bc7a876

Please sign in to comment.