Skip to content

Commit b2049e6

Browse files
Improvement to the playAnim function (#776)
* Improvement to the playAnim function * dont mind me --------- Co-authored-by: ⍚~Nex <87421482+NexIsDumb@users.noreply.github.com>
1 parent 6612fa6 commit b2049e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/funkin/game/PlayState.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@ class PlayState extends MusicBeatState
16401640
case "Play Animation":
16411641
if (strumLines.members[event.params[0]] != null && strumLines.members[event.params[0]].characters != null)
16421642
for (char in strumLines.members[event.params[0]].characters)
1643-
if (char != null) char.playAnim(event.params[1], event.params[2], event.params[3] == "NONE" ? null : event.params[3]);
1643+
if (char != null && char.hasAnim(event.params[1])) char.playAnim(event.params[1], event.params[2], event.params[3] == "NONE" ? null : event.params[3]);
16441644
case "Unknown": // nothing
16451645
}
16461646
}
@@ -2241,4 +2241,4 @@ class CamPosData {
22412241
pos.put();
22422242
pos = null;
22432243
}
2244-
}
2244+
}

0 commit comments

Comments
 (0)