File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments