From c69ecb78e731289df1f0cb916260e7ef88575263 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Tue, 30 Jan 2007 20:29:01 +0000 Subject: added calls to SmushPlayer::getFont() to prevent accessing non-initialised SmushFont objects svn-id: r25285 --- engines/scumm/insane/insane.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/scumm/insane/insane.cpp b/engines/scumm/insane/insane.cpp index eaca1da4e7..fbd30fd5f9 100644 --- a/engines/scumm/insane/insane.cpp +++ b/engines/scumm/insane/insane.cpp @@ -1251,7 +1251,7 @@ void Insane::smlayer_overrideDrawActorAt(byte *arg_0, byte arg_4, byte arg_8) { void Insane::smlayer_showStatusMsg(int32 arg_0, byte *renderBitmap, int32 codecparam, int32 pos_x, int32 pos_y, int32 arg_14, int32 arg_18, int32 flags, const char *formatString, const char *strng) { - SmushFont *sf = _player->_sf[0]; + SmushFont *sf = _player->getFont(0); int color = 1; int32 top = 0; char *str = NULL, *string; @@ -1272,7 +1272,7 @@ void Insane::smlayer_showStatusMsg(int32 arg_0, byte *renderBitmap, int32 codecp { int id = str[3] - '0'; str += 4; - sf = _player->_sf[id]; + sf = _player->getFont(id); } break; case 'c': -- cgit v1.2.3