Skip to content

Commit

Permalink
Merge pull request #13 from mouring/main
Browse files Browse the repository at this point in the history
_reload_scene() is using free() instead of queue_free()
  • Loading branch information
jabsatz authored Apr 14, 2022
2 parents 96952c5 + ad4ecf3 commit 1fb278b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/scene_manager/SceneManager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func _reload_scene() -> void:


func _replace_scene(path: String) -> void:
_current_scene.free()
_current_scene.queue_free()
emit_signal("scene_unloaded")
var following_scene = ResourceLoader.load(path)
_current_scene = following_scene.instance()
Expand Down

0 comments on commit 1fb278b

Please sign in to comment.