Skip to content

Commit e182a91

Browse files
committed
Fixed an issue where the active event start offset didn't match the actual start offset
1 parent 31b9fae commit e182a91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scheduler.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Scheduler : public MicroTasks::Task
4646
EventInstance &operator=(const EventInstance &rhs) {
4747
_event = rhs._event;
4848
_day = rhs._day;
49-
_startOffset = randomiseStartOffset();
49+
_startOffset = rhs._startOffset;
5050
return *this;
5151
};
5252

@@ -62,15 +62,15 @@ class Scheduler : public MicroTasks::Task
6262
}
6363

6464
bool operator==(const EventInstance &rhs) const {
65-
return _event == rhs._event && _day == rhs._day;
65+
return _event == rhs._event && _day == rhs._day && _startOffset == rhs._startOffset;
6666
};
6767

6868
bool operator!=(const EventInstance &rhs) const {
6969
return !(*this == rhs);
7070
};
7171

7272
bool operator==(const EventInstance *rhs) const {
73-
return _event == rhs->_event && _day == rhs->_day;
73+
return _event == rhs->_event && _day == rhs->_day && _startOffset == rhs->_startOffset;
7474
};
7575

7676
bool operator!=(const EventInstance *rhs) const {

0 commit comments

Comments
 (0)