[fix] Fixed an issue that ProcessOperation wouldn't be called when the operation is in first frame.

This commit is contained in:
falsycat 2019-10-06 00:00:00 +00:00
parent 803b4132af
commit 94efeb6120

View File

@ -45,6 +45,7 @@ abstract class AbstractScheduledController : ScheduledControllerInterface {
const next_operation = &operations_[next_operation_index_]; const next_operation = &operations_[next_operation_index_];
if (IsTimeInPeriod(time, next_operation.period)) { if (IsTimeInPeriod(time, next_operation.period)) {
PrepareOperation(*next_operation); PrepareOperation(*next_operation);
ProcessOperation(*next_operation);
++next_operation_index_; ++next_operation_index_;
} }
} }