aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-13 22:25:34 +0400
committerAlyssa Milburn2011-06-15 17:34:48 +0200
commit0946aa81bd2bf8c02a4f2d75b01709173fcda3da (patch)
tree5714800d43bd5dd7fb375f085409994a754952b0
parent8ede458e7766e0c3335e59129bc3ef29509a01cd (diff)
downloadscummvm-rg350-0946aa81bd2bf8c02a4f2d75b01709173fcda3da.tar.gz
scummvm-rg350-0946aa81bd2bf8c02a4f2d75b01709173fcda3da.tar.bz2
scummvm-rg350-0946aa81bd2bf8c02a4f2d75b01709173fcda3da.zip
DREAMWEB: added operator= for segmentref
-rw-r--r--engines/dreamweb/runtime.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/dreamweb/runtime.h b/engines/dreamweb/runtime.h
index adbf333bd6..e9caf37368 100644
--- a/engines/dreamweb/runtime.h
+++ b/engines/dreamweb/runtime.h
@@ -137,6 +137,13 @@ public:
return *this;
}
+ inline SegmentRef& operator=(const SegmentRef &ref) {
+ _context = ref._context;
+ _value = ref._value;
+ _segment = ref._segment;
+ return *this;
+ }
+
inline uint8 &byte(unsigned index) {
assert(_segment != 0);
return _segment->byte(index);