Fix crash related to moves without battle animations

This commit is contained in:
Flashfyre committed 2024-03-23 15:29:22 -04:00
1 parent a333f7886c
commit a3cde2df59
2 files changed
+2 -1

No files matched your search

+2
View File
@@ -560,6 +560,8 @@ function loadAnimAssets(scene: BattleScene, anims: AnimConfig[], startLoad?: boo
const backgrounds = new Set<string>();
const sounds = new Set<string>();
for (let a of anims) {
if (!a.frames?.length)
continue;
const animSounds = a.getSoundResourceNames();
for (let ms of animSounds)
sounds.add(ms);