TSAGE: Fix for crash when hiding cursor in Ringworld demo

This commit is contained in:
Paul Gilbert 2011-05-15 22:56:35 +10:00
parent 760e8d4e6e
commit 98c4d739f2

View File

@ -151,8 +151,13 @@ void EventsClass::setCursor(CursorType cursorType) {
switch (cursorType) {
case CURSOR_NONE:
// No cursor
cursor = _resourceManager->getSubResource(4, 1, 6, &size);
_globals->setFlag(122);
if (_vm->getFeatures() & GF_DEMO) {
CursorMan.showMouse(false);
return;
}
cursor = _resourceManager->getSubResource(4, 1, 6, &size);
break;
case CURSOR_LOOK: