Skip to content

Commit

Permalink
scvm: object: Replace the flags field with parent_state
Browse files Browse the repository at this point in the history
This field is for objects that have a parent object, to indicate the
state that the parent should be into for the object to exists.
  • Loading branch information
AlbanBedel committed Oct 1, 2014
1 parent 889eb57 commit 75437da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct scvm_object {
unsigned num_hotspot;
int* hotspot;
scvm_image_t* image;
unsigned flags;
unsigned parent_state;
scvm_object_t* parent;
unsigned actor_dir;
unsigned* verb_entries;
Expand Down
2 changes: 1 addition & 1 deletion scvm_res.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ scvm_object_t* scvm_load_obcd(scvm_t* vm, scc_fd_t* fd) {
obj->height = scc_fd_r16le(fd);
} else
scc_fd_seek(fd,8,SEEK_CUR);
obj->flags = scc_fd_r8(fd);
obj->parent_state = scc_fd_r8(fd);
// hack, the real pointer get resolved when all
// object are loaded.
obj->parent = (scvm_object_t*)((intptr_t)scc_fd_r8(fd));
Expand Down

0 comments on commit 75437da

Please sign in to comment.