aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorGregory Montoir2007-01-30 20:29:01 +0000
committerGregory Montoir2007-01-30 20:29:01 +0000
commitc69ecb78e731289df1f0cb916260e7ef88575263 (patch)
tree663a85b6ab826d3dce9aaa761d40f48a54971ce7 /engines
parent7e5a0b05b552ae735f3b051f5f19cfc93467f56e (diff)
downloadscummvm-rg350-c69ecb78e731289df1f0cb916260e7ef88575263.tar.gz
scummvm-rg350-c69ecb78e731289df1f0cb916260e7ef88575263.tar.bz2
scummvm-rg350-c69ecb78e731289df1f0cb916260e7ef88575263.zip
added calls to SmushPlayer::getFont() to prevent accessing non-initialised SmushFont objects
svn-id: r25285
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/insane/insane.cpp4
1 files changed, 2 insertions, 2 deletions
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':