Skip to content

Commit 2241ed0

Browse files
committed
Fix bug in LoadANNIEEvent tool
1 parent f77b02d commit 2241ed0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

UserTools/LoadANNIEEvent/LoadANNIEEvent.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ bool LoadANNIEEvent::Execute() {
5151
if ( stop_the_loop == 1 ) return false;
5252

5353
if (need_new_file_) {
54+
need_new_file_=false;
5455

5556
// Delete the old ANNIEEvent Store if there is one
5657
if ( m_data->Stores.count("ANNIEEvent") ) {
@@ -78,11 +79,11 @@ bool LoadANNIEEvent::Execute() {
7879
++current_entry_;
7980

8081
if ( current_entry_ >= total_entries_in_file_ ) {
82+
++current_file_;
8183
if ( current_file_ >= input_filenames_.size() ) {
8284
m_data->vars.Set("StopLoop", 1);
8385
}
8486
else {
85-
++current_file_;
8687
current_entry_ = 0u;
8788
need_new_file_ = true;
8889
}

0 commit comments

Comments
 (0)