diff options
-rw-r--r-- | crawl-ref/source/externs.h | 4 | ||||
-rw-r--r-- | crawl-ref/source/tags.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index b252433227..60e0b8f729 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -513,7 +513,7 @@ public: bool just_autoprayed; // autopray just kicked in - unsigned char prev_targ; + unsigned short prev_targ; coord_def prev_grd_targ; char your_name[kNameLen]; @@ -603,7 +603,7 @@ public: char spell_no; game_direction_type char_direction; - unsigned char pet_target; + unsigned short pet_target; int your_level; // offset by one (-1 == 0, 0 == 1, etc.) for display diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index f00181319f..c16e20005f 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -777,7 +777,7 @@ static void tag_construct_you(struct tagHeader &th) marshallByte(th,you.rotting); marshallByte(th,you.symbol); marshallByte(th,you.colour); - marshallByte(th,you.pet_target); + marshallShort(th,you.pet_target); marshallByte(th,you.max_level); marshallByte(th,you.where_are_you); @@ -1121,7 +1121,7 @@ static void tag_read_you(struct tagHeader &th, char minorVersion) you.rotting = unmarshallByte(th); you.symbol = unmarshallByte(th); you.colour = unmarshallByte(th); - you.pet_target = unmarshallByte(th); + you.pet_target = unmarshallShort(th); you.max_level = unmarshallByte(th); you.where_are_you = static_cast<branch_type>( unmarshallByte(th) ); |