diff options
Diffstat (limited to 'sword1/mouse.cpp')
-rw-r--r-- | sword1/mouse.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sword1/mouse.cpp b/sword1/mouse.cpp index a979bfcf45..c799cdb7eb 100644 --- a/sword1/mouse.cpp +++ b/sword1/mouse.cpp @@ -40,6 +40,14 @@ Mouse::Mouse(OSystem *system, ResMan *pResMan, ObjectMan *pObjMan) { _currentPtr = NULL; } +Mouse::~Mouse(void) { + setLuggage(0, 0); + setPointer(0, 0); + + for (uint8 cnt = 0; cnt < 17; cnt++) // force res manager to keep mouse + _resMan->resClose(MSE_POINTER + cnt); // cursors in memory all the time +} + void Mouse::initialize(void) { _numObjs = 0; Logic::_scriptVars[MOUSE_STATUS] = 0; // mouse off and unlocked |