diff --git a/src/undoable.cpp b/src/undoable.cpp index 46c01a3a9..271a4c1f0 100644 --- a/src/undoable.cpp +++ b/src/undoable.cpp @@ -951,7 +951,7 @@ void Undoable::clear_mask(int bgcolor) // if the layer is transparent we can remove the cel (and its // associated image) else { - static_cast(m_sprite->layer)->remove_cel(cel); + remove_cel(static_cast(m_sprite->layer), cel); } } else {