mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-15 14:28:28 +00:00
TITANIC: Minor fixes executing game manager update
This commit is contained in:
parent
c6b239bdac
commit
8b5ad45f4a
@ -31,7 +31,7 @@
|
||||
namespace Titanic {
|
||||
|
||||
CViewItem::CViewItem() : CNamedItem() {
|
||||
Common::fill(&_buttonUpTargets[0], &_buttonUpTargets[3], nullptr);
|
||||
Common::fill(&_buttonUpTargets[0], &_buttonUpTargets[4], nullptr);
|
||||
_field24 = 0;
|
||||
_field28 = 0.0;
|
||||
_viewNumber = 0;
|
||||
|
@ -175,7 +175,7 @@ void CGameManager::update() {
|
||||
// And the text cursor
|
||||
CScreenManager *screenManager = CScreenManager::_screenManagerPtr;
|
||||
CTextCursor *textCursor = screenManager->_textCursor;
|
||||
if (textCursor->_active)
|
||||
if (textCursor && textCursor->_active)
|
||||
_bounds.extend(textCursor->getBounds());
|
||||
|
||||
// Set the surface bounds
|
||||
|
@ -178,7 +178,7 @@ public:
|
||||
void playClip(CMovieClip *clip, CRoomItem *oldRoom, CRoomItem *newRoom);
|
||||
|
||||
/**
|
||||
* Updates the state of the manager
|
||||
* Main frame update method for the game
|
||||
*/
|
||||
void update();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user