summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapmark.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mapmark.cc')
-rw-r--r--crawl-ref/source/mapmark.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/mapmark.cc b/crawl-ref/source/mapmark.cc
index 4994b6dc32..5f0942ef2e 100644
--- a/crawl-ref/source/mapmark.cc
+++ b/crawl-ref/source/mapmark.cc
@@ -752,7 +752,11 @@ void map_markers::write(writer &outf) const
// Write the marker data, prefixed by a size
marshallLong(outf, buf.size());
- outf.write(&buf[0], buf.size());
+ for ( std::vector<unsigned char>::const_iterator bi = buf.begin();
+ bi != buf.end(); ++bi )
+ {
+ outf.writeByte(*bi);
+ }
}
}