Skip to content

Commit

Permalink
small bug fix on snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jjppof committed Jan 30, 2024
1 parent 2540b73 commit 2f0f143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/Snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export class Snapshot {
action: npc.current_action,
animation: npc.current_animation,
frame: npc.sprite?.frameName ?? null,
anim_is_playing: npc.sprite?.animations.currentAnim.isPlaying ?? null,
anim_is_playing: npc.sprite?.animations?.currentAnim?.isPlaying ?? null,
base_collision_layer: npc.base_collision_layer,
send_to_back: npc.sprite?.send_to_back ?? null,
send_to_front: npc.sprite?.send_to_front ?? null,
Expand Down Expand Up @@ -432,7 +432,7 @@ export class Snapshot {
action: io.current_action,
animation: io.current_animation,
frame: io.sprite?.frameName ?? null,
anim_is_playing: io.sprite?.animations.currentAnim.isPlaying ?? null,
anim_is_playing: io.sprite?.animations?.currentAnim?.isPlaying ?? null,
base_collision_layer: io.base_collision_layer,
send_to_back: io.sprite?.send_to_back ?? null,
send_to_front: io.sprite?.send_to_front ?? null,
Expand Down

0 comments on commit 2f0f143

Please sign in to comment.