summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapmark.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-17 11:11:48 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-17 11:11:48 +0000
commitb077eb8665d53ff4c307678ad0c6ca07d73b623e (patch)
treea552e7374e2763f38d79e39828a5e5afa1109f2c /crawl-ref/source/mapmark.cc
parentc76e3a228cfc6bc3b115c99278b38f21bdc733af (diff)
downloadcrawl-ref-b077eb8665d53ff4c307678ad0c6ca07d73b623e.tar.gz
crawl-ref-b077eb8665d53ff4c307678ad0c6ca07d73b623e.zip
Apply several recent commits to 0.4.1
* r6547 (Matthew's item quote patch) * r6550 (Haran's mapmark patch, no idea what part it plays in fixing the bug but it surely won't hurt) * r6561 (Haran's hell effects patch) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6584 c06c8d41-db1a-0410-9941-cceddc491573
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);
+ }
}
}