From 3fbed51718d84b7fdc21d44d80b290e1742ed647 Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 15 Jul 2008 13:44:58 +0000 Subject: Possible fix for 2018522. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6559 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/mapmark.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/mapmark.cc') 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::const_iterator bi = buf.begin(); + bi != buf.end(); ++bi ) + { + outf.writeByte(*bi); + } } } -- cgit v1.2.3-54-g00ecf