Browse Source

Fixed buildActionIndexToPlayerIndexMap

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
e0977ebb81
  1. 2
      src/storm/storage/prism/Program.cpp

2
src/storm/storage/prism/Program.cpp

@ -519,7 +519,7 @@ namespace storm {
for (storm::storage::PlayerIndex i = 0; i < this->getPlayers().size(); ++i) { for (storm::storage::PlayerIndex i = 0; i < this->getPlayers().size(); ++i) {
for (auto const& act : this->getPlayers()[i].getActions()) { for (auto const& act : this->getPlayers()[i].getActions()) {
STORM_LOG_ASSERT(hasAction(act), "Action " << act << " not found."); STORM_LOG_ASSERT(hasAction(act), "Action " << act << " not found.");
result.emplace(actionToIndexMap.at(act), i);
result[actionToIndexMap.at(act)] = i;
} }
} }
return result; return result;

Loading…
Cancel
Save