aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-03 13:59:40 +0100
committerWillem Jan Palenstijn2011-12-03 13:59:40 +0100
commit38098a0d0cf659ad6fa592528827e524e18c42f9 (patch)
tree2fad452ffd7fe627946c053a096dd768bddf214a /engines
parentb2fdf79c4a7fa1af38642e1435ac2d38a2d6ebad (diff)
downloadscummvm-rg350-38098a0d0cf659ad6fa592528827e524e18c42f9.tar.gz
scummvm-rg350-38098a0d0cf659ad6fa592528827e524e18c42f9.tar.bz2
scummvm-rg350-38098a0d0cf659ad6fa592528827e524e18c42f9.zip
DREAMWEB: Make SegmentRef::operator= protected for extra immutability
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/runtime.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/dreamweb/runtime.h b/engines/dreamweb/runtime.h
index e700d29a49..002f2ab8f2 100644
--- a/engines/dreamweb/runtime.h
+++ b/engines/dreamweb/runtime.h
@@ -182,6 +182,14 @@ public:
assert(_segment != 0);
return _segment->ptr(index, size);
}
+
+protected:
+ SegmentRef &operator=(const SegmentRef &seg) {
+ _value = seg._value;
+ _segment = seg._segment;
+ return *this;
+ }
+
};
class MutableSegmentRef : public SegmentRef {