aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/saga.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/saga/saga.h b/engines/saga/saga.h
index 1db003d4a3..8eb4833278 100644
--- a/engines/saga/saga.h
+++ b/engines/saga/saga.h
@@ -464,8 +464,12 @@ public:
* Return a pointer to the start of the buffer underlying this byte array,
* or NULL if the buffer is empty.
*/
- byte *getBuffer() const {
- return empty() ? NULL : (byte *)&front();
+ byte *getBuffer() {
+ return empty() ? NULL : &front();
+ }
+
+ const byte *getBuffer() const {
+ return empty() ? NULL : &front();
}
void assign(const ByteArray &src) {