diff options
author | Max Horn | 2009-05-08 09:53:31 +0000 |
---|---|---|
committer | Max Horn | 2009-05-08 09:53:31 +0000 |
commit | b49dd221737bd1291002fb6c4dc08384e176d632 (patch) | |
tree | 7e77dc83267218fb1f2a3eb0abbdba1c02943de1 /engines/sci/engine/savegame.cpp | |
parent | d8738b9090c1b8d866f18962be428076de6faae2 (diff) | |
download | scummvm-rg350-b49dd221737bd1291002fb6c4dc08384e176d632.tar.gz scummvm-rg350-b49dd221737bd1291002fb6c4dc08384e176d632.tar.bz2 scummvm-rg350-b49dd221737bd1291002fb6c4dc08384e176d632.zip |
SCI: Renamed dstack_t -> DataStack; removed obsolete KF_OLD constant
svn-id: r40374
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index a8f803c259..3c9ccdcfc0 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -439,10 +439,10 @@ static void sync_MemObjPtr(Common::Serializer &s, MemObject *&mobj) { break; case MEM_OBJ_STACK: // TODO: Switch this stack to use class Common::Stack? - s.syncAsUint32LE((*(dstack_t *)mobj).nr); + s.syncAsUint32LE((*(DataStack *)mobj).nr); if (s.isLoading()) { - //free((*(dstack_t *)mobj).entries); - (*(dstack_t *)mobj).entries = (reg_t *)sci_calloc((*(dstack_t *)mobj).nr, sizeof(reg_t)); + //free((*(DataStack *)mobj).entries); + (*(DataStack *)mobj).entries = (reg_t *)sci_calloc((*(DataStack *)mobj).nr, sizeof(reg_t)); } break; case MEM_OBJ_HUNK: @@ -539,7 +539,7 @@ static byte *find_unique_script_block(EngineState *s, byte *buf, int type) { // FIXME: This should probably be turned into an EngineState method static void reconstruct_stack(EngineState *retval) { SegmentId stack_seg = find_unique_seg_by_type(retval->seg_manager, MEM_OBJ_STACK); - dstack_t *stack = (dstack_t *)(retval->seg_manager->_heap[stack_seg]); + DataStack *stack = (DataStack *)(retval->seg_manager->_heap[stack_seg]); retval->stack_segment = stack_seg; retval->stack_base = stack->entries; |