Changeset 176 in tmcsimulator-scriptbuilder
- Timestamp:
- 12/21/2019 09:27:51 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/scriptbuilder/structures/TimeSlice.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/structures/TimeSlice.java
r174 r176 326 326 public void removeCorrespondingAudioEvent(I_AudioEvent comparisonEvent){ 327 327 String id = comparisonEvent.getID(); 328 I_ScriptEvent removable = null; 328 329 for(I_ScriptEvent event : events) 329 330 { … … 332 333 if(id.equals(((AudioEvent) event).id)) 333 334 { 334 System.out.println("the event was deleted"); 335 events.remove(event); 336 //this break prevents a ConcurrentModificationException. Not sure if this is logically okay. 337 break; 335 removable = event; 338 336 } 339 337 340 338 } 341 339 } 340 events.remove(removable); 342 341 } 343 342 public AudioEvent getCorrespondingAudioEvent(I_AudioEvent comparisonEvent)
Note: See TracChangeset
for help on using the changeset viewer.
