diff --git a/source/funkin/ui/story/Level.hx b/source/funkin/ui/story/Level.hx index 5d24de312..3ff0a5321 100644 --- a/source/funkin/ui/story/Level.hx +++ b/source/funkin/ui/story/Level.hx @@ -43,7 +43,8 @@ class Level implements IRegistryEntry */ public function getSongs():Array { - return _data.songs; + // Copy the array so that it can't be modified on accident + return _data.songs.copy(); } /**