TITANIC: Minor fixes executing game manager update

This commit is contained in:
Paul Gilbert 2016-03-19 23:02:41 -04:00
parent c6b239bdac
commit 8b5ad45f4a
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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

View File

@ -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();