File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -287,22 +287,22 @@ func handle_event(event_index:int) -> void:
287
287
## By using the clear flags from the [member ClearFlags] enum you can specify
288
288
## what info should be kept.
289
289
## For example, at timeline end usually it doesn't clear node or subsystem info.
290
- func clear (clear_flags := ClearFlags .FULL_CLEAR ) -> bool :
291
-
290
+ func clear (clear_flags := ClearFlags .FULL_CLEAR ) -> void :
292
291
if ! clear_flags & ClearFlags .TIMELINE_INFO_ONLY :
293
292
for subsystem in get_children ():
294
293
if subsystem is DialogicSubsystem :
295
294
(subsystem as DialogicSubsystem ).clear_game_state (clear_flags )
296
295
297
- # Resetting variables
298
- if current_timeline :
299
- await current_timeline .clean ()
296
+ var timeline := current_timeline
300
297
301
298
current_timeline = null
302
299
current_event_idx = - 1
303
300
current_timeline_events = []
304
301
current_state = States .IDLE
305
- return true
302
+
303
+ # Resetting variables
304
+ if timeline :
305
+ await timeline .clean ()
306
306
307
307
#endregion
308
308
You can’t perform that action at this time.
0 commit comments