aboutsummaryrefslogtreecommitdiff
path: root/engines/pink
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink')
-rw-r--r--engines/pink/cursor_mgr.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/pink/cursor_mgr.cpp b/engines/pink/cursor_mgr.cpp
index 99febcdc8a..a7bfbf3531 100644
--- a/engines/pink/cursor_mgr.cpp
+++ b/engines/pink/cursor_mgr.cpp
@@ -60,15 +60,11 @@ void CursorMgr::setCursor(uint index, const Common::Point point, const Common::S
if (action != _actor->getAction()) {
_actor->setAction(action);
- CelDecoder *decoder = static_cast<ActionCEL*>(action)->getDecoder();
- decoder->setX(point.x);
- decoder->setY(point.y);
- } else {
- CelDecoder *decoder = static_cast<ActionCEL*>(action)->getDecoder();
- decoder->setX(point.x);
- decoder->setY(point.y);
}
+ ActionCEL *sprite = static_cast<ActionCEL*>(action);
+ sprite->setCenter(point);
+
}
void CursorMgr::update() {