Skip to content

Commit

Permalink
Fix triggered actions not being recreated
Browse files Browse the repository at this point in the history
  • Loading branch information
johbrust committed Mar 25, 2024
1 parent 9623461 commit 52a24f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Griddly/Core/TurnBasedGameProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ std::shared_ptr<TurnBasedGameProcess> TurnBasedGameProcess::fromGameState(GameSt

std::unordered_map<uint32_t, std::shared_ptr<Object>> loadedObjectMapping;

for (auto& actionTriggerDefinitionIt : objectGenerator->getActionTriggerDefinitions()) {
loadedGrid->addActionTrigger(actionTriggerDefinitionIt.first, actionTriggerDefinitionIt.second);
}

// Behaviour probabilities
loadedGrid->setBehaviourProbabilities(objectGenerator->getBehaviourProbabilities());

Expand Down

0 comments on commit 52a24f3

Please sign in to comment.