aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/cursors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sludge/cursors.cpp')
-rw-r--r--engines/sludge/cursors.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/sludge/cursors.cpp b/engines/sludge/cursors.cpp
index 7c16e8fa19..0c7745e9ff 100644
--- a/engines/sludge/cursors.cpp
+++ b/engines/sludge/cursors.cpp
@@ -36,13 +36,22 @@ namespace Sludge {
CursorManager::CursorManager(SludgeEngine *vm) {
_vm = vm;
+ init();
+}
+
+CursorManager::~CursorManager() {
+ kill();
+}
+
+void CursorManager::init() {
_mouseCursorAnim = makeNullAnim();
_mouseCursorFrameNum = 0;
_mouseCursorCountUp = 0;
}
-CursorManager::~CursorManager() {
-
+void CursorManager::kill() {
+ deleteAnim(_mouseCursorAnim);
+ _mouseCursorAnim = nullptr;
}
void CursorManager::pickAnimCursor(PersonaAnimation *pp) {