diff options
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 8b8eb8db18..46505fdbe5 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1517,7 +1517,7 @@ static void tag_construct_level(struct tagHeader &th) marshallShort(th, env.map[count_x][count_y].object); marshallShort(th, env.map[count_x][count_y].colour); marshallShort(th, env.map[count_x][count_y].flags); - marshallByte(th, env.cgrid[count_x][count_y]); + marshallShort(th, env.cgrid[count_x][count_y]); } } @@ -1745,7 +1745,7 @@ static void tag_read_level( struct tagHeader &th, char minorVersion ) env.map[i][j].flags = unmarshallShort(th); mgrd[i][j] = NON_MONSTER; - env.cgrid[i][j] = (unsigned char) unmarshallByte(th); + env.cgrid[i][j] = (unsigned short) unmarshallShort(th); } } |