diff options
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index f65421e5a1..0d140664e5 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -2186,8 +2186,9 @@ static void unmarshall_monster(reader &th, monsters &m) // Avoid sign extension when loading files (Elethiomel's hang) m.speed_increment = (unsigned char) unmarshallByte(th); m.behaviour = static_cast<beh_type>(unmarshallByte(th)); - m.position.x = unmarshallByte(th); - m.position.y = unmarshallByte(th); + int x = unmarshallByte(th); + int y = unmarshallByte(th); + m.set_position(coord_def(x,y)); m.target.x = unmarshallByte(th); m.target.y = unmarshallByte(th); |