From b78001f7ca1fb433ce3605fb141ecc18ad436d7c Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 14 Mar 2009 00:05:01 +0000 Subject: Changed the "internal" variable inside gfxr_pic_t to priorityTable (cause that's what it is), and changed its type to int * to avoid unneeded casts svn-id: r39375 --- engines/sci/engine/kgraphics.cpp | 2 +- engines/sci/engine/savegame.cfsml | 2 +- engines/sci/engine/savegame.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index e1dcfad108..604160f3d1 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -1048,7 +1048,7 @@ reg_t kDrawPic(EngineState *s, int funct_nr, int argc, reg_t *argv) { s->port = s->picture_port; - s->pic_priority_table = (int*)gfxop_get_pic_metainfo(s->gfx_state); + s->pic_priority_table = gfxop_get_pic_metainfo(s->gfx_state); if (sci01_priority_table_flags & 0x2) { if (s->pic_priority_table) { diff --git a/engines/sci/engine/savegame.cfsml b/engines/sci/engine/savegame.cfsml index b41af91e5f..a2e64c9a35 100644 --- a/engines/sci/engine/savegame.cfsml +++ b/engines/sci/engine/savegame.cfsml @@ -1115,7 +1115,7 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { retval->have_mouse_flag = 1; retval->successor = NULL; - retval->pic_priority_table = (int*)gfxop_get_pic_metainfo(retval->gfx_state); + retval->pic_priority_table = gfxop_get_pic_metainfo(retval->gfx_state); retval->game_name = sci_strdup(obj_get_name(retval, retval->game_obj)); retval->sound.it = NULL; diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index ab9e97b9e9..ab04e5475d 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -5276,7 +5276,7 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { retval->have_mouse_flag = 1; retval->successor = NULL; - retval->pic_priority_table = (int*)gfxop_get_pic_metainfo(retval->gfx_state); + retval->pic_priority_table = gfxop_get_pic_metainfo(retval->gfx_state); retval->game_name = sci_strdup(obj_get_name(retval, retval->game_obj)); retval->sound.it = NULL; -- cgit v1.2.3