Merge pull request #1772 from atgeirr/fix-starttime-actionx

Fix start-time of ACTIONX actions.
This commit is contained in:
Joakim Hove 2020-05-07 18:38:26 +02:00 committed by GitHub
commit e05e6f83ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -530,7 +530,7 @@ Schedule::Schedule(const Deck& deck, const EclipseState& es, const ParseContext&
while (true) {
const auto& keyword = section.getKeyword(keywordIdx);
if (keyword.name() == "ACTIONX") {
Action::ActionX action(keyword, this->m_timeMap.getStartTime(currentStep + 1));
Action::ActionX action(keyword, this->m_timeMap.getStartTime(currentStep));
while (true) {
keywordIdx++;
if (keywordIdx == section.size())