Skip to content

Commit a65ec11

Browse files
committed
Revert "MovingSprite: Check if action exists before setting it"
This reverts commit ebc50cd. The line above specifically states that if the sprite change failed then it will revert to the previous.
1 parent ebc50cd commit a65ec11

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/object/moving_sprite.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,7 @@ MovingSprite::after_editor_set()
216216
{
217217
change_sprite(get_default_sprite_name());
218218
}
219-
if (m_sprite->has_action(current_action))
220-
{
221-
m_sprite->set_action(current_action);
222-
}
219+
m_sprite->set_action(current_action);
223220

224221
update_hitbox();
225222
}

0 commit comments

Comments
 (0)