Skip to content

Commit

Permalink
fix(base_level.gd): 修复无法前往下一关的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
cutekibry committed Feb 28, 2024
1 parent 214f0c6 commit e4cdf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion levels/base_level/base_level.gd
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ func _on_next_level_button_pressed():
level_menu.init(chap_id)
else:
var base_level = BaseLevelScn.instantiate()
base_level.init(chap_id, lvl_id)
get_tree().root.add_child(base_level)
base_level.init(chap_id, lvl_id + 1)
queue_free()

func _on_replay_button_pressed():
Expand Down

0 comments on commit e4cdf63

Please sign in to comment.